[pywin32-checkins] pywin32/win32/src win32gui.i,1.112,1.113
OLD project page for the Python extensions for Windows
Brought to you by:
mhammond
From: Mark H. <mha...@us...> - 2008-01-15 10:25:13
|
Update of /cvsroot/pywin32/pywin32/win32/src In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv31777 Modified Files: win32gui.i Log Message: GetOpenFileName and GetSaveFileName did not release the GIL. Index: win32gui.i =================================================================== RCS file: /cvsroot/pywin32/pywin32/win32/src/win32gui.i,v retrieving revision 1.112 retrieving revision 1.113 diff -C2 -d -r1.112 -r1.113 *** win32gui.i 12 Oct 2007 00:35:09 -0000 1.112 --- win32gui.i 15 Jan 2008 10:25:16 -0000 1.113 *************** *** 6133,6137 **** return NULL; ! if (!GetSaveFileNameW(&ofn)) PyWin_SetAPIError("GetSaveFileNameW", CommDlgExtendedError()); else --- 6133,6141 ---- return NULL; ! BOOL ok; ! Py_BEGIN_ALLOW_THREADS; ! ok = GetSaveFileNameW(&ofn); ! Py_END_ALLOW_THREADS; ! if (!ok) PyWin_SetAPIError("GetSaveFileNameW", CommDlgExtendedError()); else *************** *** 6156,6160 **** return NULL; ! if (!GetOpenFileNameW(&ofn)) PyWin_SetAPIError("GetOpenFileNameW", CommDlgExtendedError()); else --- 6160,6168 ---- return NULL; ! BOOL ok; ! Py_BEGIN_ALLOW_THREADS; ! ok = GetOpenFileNameW(&ofn); ! Py_END_ALLOW_THREADS; ! if (!ok) PyWin_SetAPIError("GetOpenFileNameW", CommDlgExtendedError()); else |