[pywin32-checkins] pywin32/isapi/src Utils.cpp,1.1,1.2
OLD project page for the Python extensions for Windows
Brought to you by:
mhammond
From: Mark H. <mha...@us...> - 2004-10-26 01:31:06
|
Update of /cvsroot/pywin32/pywin32/isapi/src In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv21835 Modified Files: Utils.cpp Log Message: Don't return a garbage string if FormatMessage fails. Index: Utils.cpp =================================================================== RCS file: /cvsroot/pywin32/pywin32/isapi/src/Utils.cpp,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** Utils.cpp 6 Oct 2004 05:11:54 -0000 1.1 --- Utils.cpp 26 Oct 2004 01:30:57 -0000 1.2 *************** *** 61,64 **** --- 61,65 ---- char *result = (char *)malloc(1024); if (!result) return NULL; + result[0] = '\0'; int nLen =FormatMessage(FORMAT_MESSAGE_FROM_SYSTEM, NULL, |