[pywin32-checkins] pywin32/com/win32com/src/extensions PyICatRegister.cpp,1.3,1.4
OLD project page for the Python extensions for Windows
Brought to you by:
mhammond
From: <mha...@us...> - 2003-10-31 12:41:02
|
Update of /cvsroot/pywin32/pywin32/com/win32com/src/extensions In directory sc8-pr-cvs1:/tmp/cvs-serv3599 Modified Files: PyICatRegister.cpp Log Message: Cast literal -1 to DWORD Index: PyICatRegister.cpp =================================================================== RCS file: /cvsroot/pywin32/pywin32/com/win32com/src/extensions/PyICatRegister.cpp,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** PyICatRegister.cpp 10 Jan 2003 02:47:13 -0000 1.3 --- PyICatRegister.cpp 31 Oct 2003 12:40:59 -0000 1.4 *************** *** 107,111 **** Py_DECREF(obThis); OLECHAR *oc; ! if (PyWin_String_AsWCHAR(desc, -1, &oc)) { wcsncpy(infos[i].szDescription, oc, sizeof(infos->szDescription)); PyWinObject_FreeString(oc); --- 107,111 ---- Py_DECREF(obThis); OLECHAR *oc; ! if (PyWin_String_AsWCHAR(desc, (DWORD)-1, &oc)) { wcsncpy(infos[i].szDescription, oc, sizeof(infos->szDescription)); PyWinObject_FreeString(oc); |