Author: Philip Jenvey <pjen...@underboss.org>
Branch: py3k
Changeset: r63474:ac3fd5644f1d
Date: 2013-04-17 22:55 -0700
http://bitbucket.org/pypy/pypy/changeset/ac3fd5644f1d/

Log:    fix getfunc on windows

diff --git a/pypy/module/_ffi/interp_funcptr.py 
b/pypy/module/_ffi/interp_funcptr.py
--- a/pypy/module/_ffi/interp_funcptr.py
+++ b/pypy/module/_ffi/interp_funcptr.py
@@ -21,7 +21,8 @@
     def _getfunc(space, CDLL, w_name, w_argtypes, w_restype):
         argtypes_w, argtypes, w_restype, restype = unpack_argtypes(
             space, w_argtypes, w_restype)
-        if space.isinstance_w(w_name, space.w_str):
+        if space.isinstance_w(w_name, space.w_unicode):
+            # XXX: support LoadLibraryW
             name = space.str_w(w_name)
             try:
                 func = CDLL.cdll.getpointer(name, argtypes, restype,
_______________________________________________
pypy-commit mailing list
pypy-commit@python.org
http://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to