[pywin32-checkins] pywin32/win32/src win32apimodule.cpp,1.84,1.85
OLD project page for the Python extensions for Windows
Brought to you by:
mhammond
From: Roger U. <ru...@us...> - 2008-04-22 06:57:48
|
Update of /cvsroot/pywin32/pywin32/win32/src In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv6665 Modified Files: win32apimodule.cpp Log Message: Release thread lock while calling GetFileVersionInfo Index: win32apimodule.cpp =================================================================== RCS file: /cvsroot/pywin32/pywin32/win32/src/win32apimodule.cpp,v retrieving revision 1.84 retrieving revision 1.85 diff -C2 -d -r1.84 -r1.85 *** win32apimodule.cpp 27 Feb 2008 10:48:08 -0000 1.84 --- win32apimodule.cpp 22 Apr 2008 06:57:52 -0000 1.85 *************** *** 5543,5547 **** --- 5543,5549 ---- if (!PyWinObject_AsWCHAR(obinfo, &info, FALSE)) goto done; + Py_BEGIN_ALLOW_THREADS buf_len=GetFileVersionInfoSizeW(file_name, &dwHandle); //handle is ignored + Py_END_ALLOW_THREADS if (buf_len==0){ PyWin_SetAPIError("GetFileVersionInfo:GetFileVersionInfoSize",GetLastError()); *************** *** 5553,5558 **** goto done; } ! if (!GetFileVersionInfoW(file_name, dwHandle, buf_len, buf)){ ! PyWin_SetAPIError("GetFileVersionInfo",GetLastError()); goto done; } --- 5555,5563 ---- goto done; } ! Py_BEGIN_ALLOW_THREADS ! success=GetFileVersionInfoW(file_name, dwHandle, buf_len, buf); ! Py_END_ALLOW_THREADS ! if (!success){ ! PyWin_SetAPIError("GetFileVersionInfo"); goto done; } |