[pypy-commit] cffi default: Windows: pass along the result (success/error) of FreeLibrary
arigo
noreply at buildbot.pypy.org
Wed May 20 16:27:02 CEST 2015
Author: Armin Rigo <arigo at tunes.org>
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)
More information about the pypy-commit
mailing list