[pywin32-checkins] pywin32/Pythonwin win32win.cpp,1.11,1.12
OLD project page for the Python extensions for Windows
Brought to you by:
mhammond
From: Roger U. <ru...@us...> - 2007-04-07 05:23:32
|
Update of /cvsroot/pywin32/pywin32/Pythonwin In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv9464/Pythonwin Modified Files: win32win.cpp Log Message: Check return status of PyCWnd->GetWindowPlacement. If it fails, garbage can be written to 'Main Window' registry key Index: win32win.cpp =================================================================== RCS file: /cvsroot/pywin32/pywin32/Pythonwin/win32win.cpp,v retrieving revision 1.11 retrieving revision 1.12 diff -C2 -d -r1.11 -r1.12 *** win32win.cpp 4 Dec 2006 22:52:24 -0000 1.11 --- win32win.cpp 7 Apr 2007 05:23:31 -0000 1.12 *************** *** 1412,1417 **** // @pyseemfc CWnd|GetWindowPlacement GUI_BGN_SAVE; ! pWnd->GetWindowPlacement( &pment ); GUI_END_SAVE; // @rdesc The result is a tuple of // (flags, showCmd, (minposX, minposY), (maxposX, maxposY), (normalposX, normalposY)) --- 1412,1419 ---- // @pyseemfc CWnd|GetWindowPlacement GUI_BGN_SAVE; ! BOOL bsuccess=pWnd->GetWindowPlacement( &pment ); GUI_END_SAVE; + if (!bsuccess) + return NULL; // @rdesc The result is a tuple of // (flags, showCmd, (minposX, minposY), (maxposX, maxposY), (normalposX, normalposY)) |