[pypy-commit] pypy release-1.6.x: Win32 fix.

arigo noreply at buildbot.pypy.org
Sun Aug 14 23:06:02 CEST 2011


Author: Armin Rigo <arigo at tunes.org>
Branch: release-1.6.x
Changeset: r46505:f44624a9c541
Date: 2011-08-14 22:08 +0200
http://bitbucket.org/pypy/pypy/changeset/f44624a9c541/

Log:	Win32 fix. (transplanted from
	a91a0cb0e3e797be2bfd5969c8339013d3d1309d)

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