win32.py: more explicit definition of _STD_ERROR_HANDLE
authorAdrian Buehlmann <adrian@cadifra.com>
Sun, 15 May 2011 21:27:59 +0200
changeset 14344 e1db8a00188b
parent 14343 9ed227f79e47
child 14345 bf9a105aed0a
win32.py: more explicit definition of _STD_ERROR_HANDLE
mercurial/win32.py
--- a/mercurial/win32.py	Mon May 16 17:02:35 2011 -0500
+++ b/mercurial/win32.py	Sun May 15 21:27:59 2011 +0200
@@ -120,7 +120,7 @@
                 ('srWindow', _SMALL_RECT),
                 ('dwMaximumWindowSize', _COORD)]
 
-_STD_ERROR_HANDLE = 0xfffffff4L # (DWORD)-12
+_STD_ERROR_HANDLE = _DWORD(-12).value
 
 def _raiseoserror(name):
     err = ctypes.WinError()