[pywin32-checkins] pywin32/win32/src win32apimodule.cpp, 1.89.2.1, 1.89.2.2
OLD project page for the Python extensions for Windows
Brought to you by:
mhammond
From: Roger U. <ru...@us...> - 2008-10-12 01:43:17
|
Update of /cvsroot/pywin32/pywin32/win32/src In directory ddv4jf1.ch3.sourceforge.com:/tmp/cvs-serv13908 Modified Files: Tag: py3k win32apimodule.cpp Log Message: Incorporate fix for GetConsoleTitle from trunk Index: win32apimodule.cpp =================================================================== RCS file: /cvsroot/pywin32/pywin32/win32/src/win32apimodule.cpp,v retrieving revision 1.89.2.1 retrieving revision 1.89.2.2 diff -C2 -d -r1.89.2.1 -r1.89.2.2 *** win32apimodule.cpp 29 Aug 2008 04:59:26 -0000 1.89.2.1 --- win32apimodule.cpp 12 Oct 2008 01:43:10 -0000 1.89.2.2 *************** *** 895,898 **** --- 895,903 ---- // the title, the return value is zero and GetLastError returns // ERROR_SUCCESS." + // However, even on Vista, markh can observe this failing with an + // apparently stale error code - as if GetConsoleTitle assumes the + // error code is already 0 in that case. So we clear the error to + // solve that. + SetLastError(0); while (TRUE){ if (title!=NULL){ |