Author: Armin Rigo <[email protected]>
Branch:
Changeset: r77451:aaab7bc9926a
Date: 2015-05-21 16:29 +0200
http://bitbucket.org/pypy/pypy/changeset/aaab7bc9926a/
Log: fix
diff --git a/rpython/rlib/rdynload.py b/rpython/rlib/rdynload.py
--- a/rpython/rlib/rdynload.py
+++ b/rpython/rlib/rdynload.py
@@ -152,9 +152,9 @@
def dlclose(handle):
res = rwin32.FreeLibrary(handle)
if res:
- return -1
+ return 0 # success
else:
- return 0
+ return -1 # error
def dlsym(handle, name):
res = rwin32.GetProcAddress(handle, name)
_______________________________________________
pypy-commit mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pypy-commit