[pypy-svn] r61261 - pypy/trunk/pypy/lib

afa at codespeak.net afa at codespeak.net
Fri Jan 23 15:27:15 CET 2009


Author: afa
Date: Fri Jan 23 15:27:12 2009
New Revision: 61261

Modified:
   pypy/trunk/pypy/lib/msvcrt.py
Log:
Ouch: Correctly pass the handle to ctypes.

This module used to work with a completely different C runtime...


Modified: pypy/trunk/pypy/lib/msvcrt.py
==============================================================================
--- pypy/trunk/pypy/lib/msvcrt.py	(original)
+++ pypy/trunk/pypy/lib/msvcrt.py	Fri Jan 23 15:27:12 2009
@@ -9,7 +9,7 @@
 import _rawffi
 import ctypes
 
-_c = ctypes.CDLL('msvcrt', _rawffi.get_libc())
+_c = ctypes.CDLL('msvcrt', handle=_rawffi.get_libc())
 
 open_osfhandle = _c._open_osfhandle
 open_osfhandle.argtypes = [ctypes.c_int, ctypes.c_int]



More information about the Pypy-commit mailing list