[pywin32-checkins] pywin32/win32/src PyHANDLE.cpp, 1.16.2.3, 1.16.2.4
OLD project page for the Python extensions for Windows
Brought to you by:
mhammond
From: Roger U. <ru...@us...> - 2008-10-05 19:54:18
|
Update of /cvsroot/pywin32/pywin32/win32/src In directory ddv4jf1.ch3.sourceforge.com:/tmp/cvs-serv7903 Modified Files: Tag: py3k PyHANDLE.cpp Log Message: Fix printing of PyHANDLE Reenable exception handling for invalid handle in Close Index: PyHANDLE.cpp =================================================================== RCS file: /cvsroot/pywin32/pywin32/win32/src/PyHANDLE.cpp,v retrieving revision 1.16.2.3 retrieving revision 1.16.2.4 diff -C2 -d -r1.16.2.3 -r1.16.2.4 *** PyHANDLE.cpp 1 Oct 2008 13:19:14 -0000 1.16.2.3 --- PyHANDLE.cpp 5 Oct 2008 19:54:04 -0000 1.16.2.4 *************** *** 220,228 **** if (m_handle) { Py_BEGIN_ALLOW_THREADS ! #ifdef Py_DEBUG_xxx __try { #endif // Py_DEBUG rc = CloseHandle(m_handle); ! #ifdef Py_DEBUG_xxx } __except(1) { // according to the docs on CloseHandle(), this --- 220,228 ---- if (m_handle) { Py_BEGIN_ALLOW_THREADS ! #ifdef Py_DEBUG __try { #endif // Py_DEBUG rc = CloseHandle(m_handle); ! #ifdef Py_DEBUG } __except(1) { // according to the docs on CloseHandle(), this *************** *** 344,348 **** { WCHAR resBuf[160]; ! _snwprintf(resBuf, 160, L"<%s:%Id>", GetTypeName(), m_handle); return PyWinCoreString_FromString(resBuf); } --- 344,348 ---- { WCHAR resBuf[160]; ! _snwprintf(resBuf, 160, L"<%hs:%Id>", GetTypeName(), m_handle); return PyWinCoreString_FromString(resBuf); } |