[pypy-commit] pypy default: Win32 fix.

arigo noreply at buildbot.pypy.org
Sun Aug 14 22:05:38 CEST 2011


Author: Armin Rigo <arigo at tunes.org>
Branch: 
Changeset: r46504:a91a0cb0e3e7
Date: 2011-08-14 22:08 +0200
http://bitbucket.org/pypy/pypy/changeset/a91a0cb0e3e7/

Log:	Win32 fix.

diff --git a/pypy/rlib/rwin32.py b/pypy/rlib/rwin32.py
--- a/pypy/rlib/rwin32.py
+++ b/pypy/rlib/rwin32.py
@@ -93,7 +93,7 @@
     INVALID_HANDLE_VALUE = rffi.cast(HANDLE, -1)
     PFILETIME = rffi.CArrayPtr(FILETIME)
 
-    GetLastError = winexternal('GetLastError', [], DWORD)
+    GetLastError = winexternal('GetLastError', [], DWORD, threadsafe=False)
     SetLastError = winexternal('SetLastError', [DWORD], lltype.Void)
 
     # In tests, the first call to GetLastError is always wrong, because error


More information about the pypy-commit mailing list