[pywin32-checkins] pywin32/win32/src PythonService.cpp,1.21,1.22
OLD project page for the Python extensions for Windows
Brought to you by:
mhammond
From: Mark H. <mha...@us...> - 2008-01-22 11:57:58
|
Update of /cvsroot/pywin32/pywin32/win32/src In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv30726 Modified Files: PythonService.cpp Log Message: _stprintf was causing link errors with vs2008/py26, so replace it with wsprintf (the module is already unicode, and we can worry about '_s' later) Index: PythonService.cpp =================================================================== RCS file: /cvsroot/pywin32/pywin32/win32/src/PythonService.cpp,v retrieving revision 1.21 retrieving revision 1.22 diff -C2 -d -r1.21 -r1.22 *** PythonService.cpp 24 Aug 2007 04:05:41 -0000 1.21 --- PythonService.cpp 22 Jan 2008 11:58:01 -0000 1.22 *************** *** 1314,1320 **** TCHAR cvtBuf[20]; ! _stprintf(cvtBuf, L"%d", errCode); ! LPTSTR lpszStrings[] = {cvtBuf, buf, L'\0'}; ! ReportError(msgCode, (LPCTSTR *)lpszStrings); } --- 1314,1320 ---- TCHAR cvtBuf[20]; ! wsprintf(cvtBuf, L"%d", errCode); ! LPTSTR lpszStrings[] = {cvtBuf, buf, L'\0'}; ! ReportError(msgCode, (LPCTSTR *)lpszStrings); } |