[pywin32-checkins] pywin32/win32/src win32apimodule.cpp,1.61,1.62
OLD project page for the Python extensions for Windows
Brought to you by:
mhammond
From: Mark H. <mha...@us...> - 2006-08-03 02:45:56
|
Update of /cvsroot/pywin32/pywin32/win32/src In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv30698 Modified Files: win32apimodule.cpp Log Message: Allow FormatMessage to accept longs that fit in 32bits (ie, 'k' format) Index: win32apimodule.cpp =================================================================== RCS file: /cvsroot/pywin32/pywin32/win32/src/win32apimodule.cpp,v retrieving revision 1.61 retrieving revision 1.62 diff -C2 -d -r1.61 -r1.62 *** win32apimodule.cpp 16 Jul 2006 11:04:20 -0000 1.61 --- win32apimodule.cpp 3 Aug 2006 02:45:54 -0000 1.62 *************** *** 528,532 **** int errCode=0; // @pyparm int|errCode|0|The error code to return the message for, If this value is 0, then GetLastError() is called to determine the error code. ! if (PyArg_ParseTuple (args, "|i:FormatMessage", &errCode)) { if (errCode==0) // @pyseeapi GetLastError --- 528,532 ---- int errCode=0; // @pyparm int|errCode|0|The error code to return the message for, If this value is 0, then GetLastError() is called to determine the error code. ! if (PyArg_ParseTuple (args, "|k:FormatMessage", &errCode)) { if (errCode==0) // @pyseeapi GetLastError |