Author: Armin Rigo <[email protected]>
Branch:
Changeset: r2065:434204ebfe81
Date: 2015-05-20 16:27 +0200
http://bitbucket.org/cffi/cffi/changeset/434204ebfe81/
Log: Windows: pass along the result (success/error) of FreeLibrary
diff --git a/c/misc_win32.h b/c/misc_win32.h
--- a/c/misc_win32.h
+++ b/c/misc_win32.h
@@ -218,8 +218,7 @@
static int dlclose(void *handle)
{
- FreeLibrary((HMODULE)handle);
- return 0;
+ return !FreeLibrary((HMODULE)handle);
}
static const char *dlerror(void)
_______________________________________________
pypy-commit mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pypy-commit