[pypy-svn] r61946 - pypy/trunk/pypy/rlib

afa at codespeak.net afa at codespeak.net
Mon Feb 16 13:42:39 CET 2009


Author: afa
Date: Mon Feb 16 13:42:36 2009
New Revision: 61946

Modified:
   pypy/trunk/pypy/rlib/rwin32.py
Log:
Translation fix on Windows: a function was missing


Modified: pypy/trunk/pypy/rlib/rwin32.py
==============================================================================
--- pypy/trunk/pypy/rlib/rwin32.py	(original)
+++ pypy/trunk/pypy/rlib/rwin32.py	Mon Feb 16 13:42:36 2009
@@ -94,6 +94,11 @@
         LocalFree(buf[0])
         return result
 
+    def lastWindowsError():
+        code = GetLastError()
+        message = FormatError(code)
+        return WindowsError(code, message)
+
     def FAILED(hr):
         return rffi.cast(HRESULT, hr) < 0
 



More information about the Pypy-commit mailing list