[pywin32-checkins] pywin32/win32/src win32gui.i,1.121,1.122
OLD project page for the Python extensions for Windows
Brought to you by:
mhammond
From: Mark H. <mha...@us...> - 2008-12-11 05:09:56
|
Update of /cvsroot/pywin32/pywin32/win32/src In directory ddv4jf1.ch3.sourceforge.com:/tmp/cvs-serv28441/win32/src Modified Files: win32gui.i Log Message: Fix error using IsBadStringPtr() in UNICODE builds. Index: win32gui.i =================================================================== RCS file: /cvsroot/pywin32/pywin32/win32/src/win32gui.i,v retrieving revision 1.121 retrieving revision 1.122 diff -C2 -d -r1.121 -r1.122 *** win32gui.i 11 Dec 2008 00:25:40 -0000 1.121 --- win32gui.i 11 Dec 2008 05:09:51 -0000 1.122 *************** *** 1611,1615 **** } // This should probably be in a __try just in case. ! if (IsBadStringPtr(addr, (DWORD_PTR)-1)) { PyErr_SetString(PyExc_ValueError, "The value is not a valid null-terminated string"); return NULL; --- 1611,1615 ---- } // This should probably be in a __try just in case. ! if (IsBadStringPtrA(addr, (DWORD_PTR)-1)) { PyErr_SetString(PyExc_ValueError, "The value is not a valid null-terminated string"); return NULL; |