[pywin32-checkins] pywin32/com/win32comext/bits/src PyIBackgroundCopyFile2.cpp, 1.2, 1.3
OLD project page for the Python extensions for Windows
Brought to you by:
mhammond
From: Mark H. <mha...@us...> - 2009-01-04 13:41:00
|
Update of /cvsroot/pywin32/pywin32/com/win32comext/bits/src In directory ddv4jf1.ch3.sourceforge.com:/tmp/cvs-serv25335/com/win32comext/bits/src Modified Files: PyIBackgroundCopyFile2.cpp Log Message: merge fixes to GetFileRanges from py3k branch Index: PyIBackgroundCopyFile2.cpp =================================================================== RCS file: /cvsroot/pywin32/pywin32/com/win32comext/bits/src/PyIBackgroundCopyFile2.cpp,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** PyIBackgroundCopyFile2.cpp 12 Feb 2008 00:10:57 -0000 1.2 --- PyIBackgroundCopyFile2.cpp 4 Jan 2009 13:40:54 -0000 1.3 *************** *** 32,46 **** if ( pIBCF2 == NULL ) return NULL; ! DWORD * RangeCount; ! PyObject *obRangeCount; ! BG_FILE_RANGE ** Ranges; ! PyObject *obRanges; if ( !PyArg_ParseTuple(args, ":GetFileRanges") ) return NULL; HRESULT hr; PY_INTERFACE_PRECALL; ! hr = pIBCF2->GetFileRanges( RangeCount, Ranges ); ! // PyObject_FreeDWORD(RangeCount); ! // PyObject_FreeBG_FILE_RANGE_LIST(Ranges); PY_INTERFACE_POSTCALL; --- 32,42 ---- if ( pIBCF2 == NULL ) return NULL; ! DWORD RangeCount; ! BG_FILE_RANGE *Ranges; if ( !PyArg_ParseTuple(args, ":GetFileRanges") ) return NULL; HRESULT hr; PY_INTERFACE_PRECALL; ! hr = pIBCF2->GetFileRanges( &RangeCount, &Ranges ); PY_INTERFACE_POSTCALL; *************** *** 48,55 **** if ( FAILED(hr) ) return PyCom_BuildPyException(hr, pIBCF2, IID_IBackgroundCopyFile2 ); - // *** The output argument RangeCount of type "DWORD *" was not processed *** - // The type 'DWORD *' (RangeCount) is unknown. - // *** The output argument Ranges of type "BG_FILE_RANGE **" was not processed *** - // The type 'BG_FILE_RANGE **' (Ranges) is unknown. Py_INCREF(Py_None); return Py_None; --- 44,47 ---- |