From: Roger U. <ru...@us...> - 2007-02-24 00:21:04
|
Update of /cvsroot/pywin32/pywin32/win32/src In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv20630/win32/src Modified Files: win32service.i Log Message: Use PyWinLong_AsVoidPtr in locking functions Index: win32service.i =================================================================== RCS file: /cvsroot/pywin32/pywin32/win32/src/win32service.i,v retrieving revision 1.10 retrieving revision 1.11 diff -C2 -d -r1.10 -r1.11 *** win32service.i 14 Jan 2007 16:37:37 -0000 1.10 --- win32service.i 24 Feb 2007 00:21:03 -0000 1.11 *************** *** 746,750 **** goto cleanup; } ! int len = _tcslen(pStr); _tcsncpy(p, pStr, len); p += len; --- 746,750 ---- goto cleanup; } ! size_t len = _tcslen(pStr); _tcsncpy(p, pStr, len); p += len; *************** *** 1105,1113 **** } %typemap(python,out) SC_LOCK{ ! $target = PyLong_FromVoidPtr($source); } %typemap(python,in) SC_LOCK{ ! $target=PyLong_AsVoidPtr($source); ! if ($target==NULL && PyErr_Occurred()) return NULL; } --- 1105,1112 ---- } %typemap(python,out) SC_LOCK{ ! $target = PyWinLong_FromVoidPtr($source); } %typemap(python,in) SC_LOCK{ ! if (!PyWinLong_AsVoidPtr($source, &$target)) return NULL; } |