[pywin32-checkins] pywin32/com/win32com/src/extensions PyGStream.cpp, 1.3, 1.4
OLD project page for the Python extensions for Windows
Brought to you by:
mhammond
From: Roger U. <ru...@us...> - 2007-07-02 01:29:51
|
Update of /cvsroot/pywin32/pywin32/com/win32com/src/extensions In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv30740/com/win32com/src/extensions Modified Files: PyGStream.cpp Log Message: Another 's#' 64-bit issue Index: PyGStream.cpp =================================================================== RCS file: /cvsroot/pywin32/pywin32/com/win32com/src/extensions/PyGStream.cpp,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** PyGStream.cpp 25 Jan 2005 13:33:16 -0000 1.3 --- PyGStream.cpp 2 Jul 2007 01:29:51 -0000 1.4 *************** *** 46,50 **** PY_GATEWAY_METHOD; PyObject *result; ! HRESULT hr = InvokeViaPolicy("Write", &result, "s#", pv, (int)cb); if ( FAILED(hr) ) return hr; --- 46,52 ---- PY_GATEWAY_METHOD; PyObject *result; ! PyObject *obbuf=PyString_FromStringAndSize((char *)pv, cb); ! HRESULT hr = InvokeViaPolicy("Write", &result, "O", obbuf); ! Py_XDECREF(obbuf); if ( FAILED(hr) ) return hr; |