Commits

Armin Rigo  committed f44624a

Win32 fix.
(transplanted from a91a0cb0e3e797be2bfd5969c8339013d3d1309d)

  • Participants
  • Parent commits dbeb9dd
  • Branches release-1.6.x

Comments (0)

Files changed (1)

File pypy/rlib/rwin32.py

     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