[pywin32-checkins] pywin32/com/win32comext/bits/src bits.cpp, 1.1.2.4, 1.1.2.5
OLD project page for the Python extensions for Windows
Brought to you by:
mhammond
From: Mark H. <mha...@us...> - 2008-02-08 05:27:42
|
Update of /cvsroot/pywin32/pywin32/com/win32comext/bits/src In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv17320 Modified Files: Tag: sidnei-bits bits.cpp Log Message: Ensure the 'completed' elt of the BG_FILE_PROGRESS tuple is a bool Index: bits.cpp =================================================================== RCS file: /cvsroot/pywin32/pywin32/com/win32comext/bits/src/Attic/bits.cpp,v retrieving revision 1.1.2.4 retrieving revision 1.1.2.5 diff -C2 -d -r1.1.2.4 -r1.1.2.5 *** bits.cpp 7 Feb 2008 08:01:42 -0000 1.1.2.4 --- bits.cpp 8 Feb 2008 05:27:27 -0000 1.1.2.5 *************** *** 36,40 **** PyObject *PyObject_FromBG_FILE_PROGRESS(BG_FILE_PROGRESS *fp) { ! return Py_BuildValue("NNi", PyLong_FromLongLong(fp->BytesTotal), PyLong_FromLongLong(fp->BytesTransferred), fp->Completed); } --- 36,43 ---- PyObject *PyObject_FromBG_FILE_PROGRESS(BG_FILE_PROGRESS *fp) { ! return Py_BuildValue("NNO", ! PyLong_FromLongLong(fp->BytesTotal), ! PyLong_FromLongLong(fp->BytesTransferred), ! fp->Completed ? Py_True : Py_False); } *************** *** 164,166 **** --- 167,170 ---- // PyModule_AddIntConstant(module, "BG_NOTIFY_FILE_TRANSFERRED", BG_NOTIFY_FILE_TRANSFERRED); + PyModule_AddIntConstant(module, "BG_JOB_ENUM_ALL_USERS", BG_JOB_ENUM_ALL_USERS); } |