[pywin32-checkins] pywin32/com/win32com/src/extensions PyIPropertyStorage.cpp,1.3,1.4
OLD project page for the Python extensions for Windows
Brought to you by:
mhammond
From: <mha...@us...> - 2003-10-19 05:22:35
|
Update of /cvsroot/pywin32/pywin32/com/win32com/src/extensions In directory sc8-pr-cvs1:/tmp/cvs-serv18241 Modified Files: PyIPropertyStorage.cpp Log Message: [ 800206 ] fix for crash in PyIProperyStorage:Stat() Index: PyIPropertyStorage.cpp =================================================================== RCS file: /cvsroot/pywin32/pywin32/com/win32com/src/extensions/PyIPropertyStorage.cpp,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** PyIPropertyStorage.cpp 4 Jun 2000 05:52:55 -0000 1.3 --- PyIPropertyStorage.cpp 18 Oct 2003 06:01:36 -0000 1.4 *************** *** 247,256 **** return Py_None; } PyObject *obclsid = PyWinObject_FromIID(pStg->clsid); PyObject *obmtime = PyWinObject_FromFILETIME(pStg->mtime); PyObject *obctime = PyWinObject_FromFILETIME(pStg->ctime); PyObject *obatime = PyWinObject_FromFILETIME(pStg->atime); ! PyObject *ret = Py_BuildValue("lOiOOO", pStg->fmtid, obclsid, pStg->grfFlags, obmtime, obctime, obatime); Py_XDECREF(obclsid); Py_XDECREF(obmtime); Py_XDECREF(obctime); --- 247,258 ---- return Py_None; } + PyObject *obfmtid = PyWinObject_FromIID(pStg->fmtid); PyObject *obclsid = PyWinObject_FromIID(pStg->clsid); PyObject *obmtime = PyWinObject_FromFILETIME(pStg->mtime); PyObject *obctime = PyWinObject_FromFILETIME(pStg->ctime); PyObject *obatime = PyWinObject_FromFILETIME(pStg->atime); ! PyObject *ret = Py_BuildValue("OOiOOO", obfmtid, obclsid, pStg->grfFlags, obmtime, obctime, obatime); Py_XDECREF(obclsid); + Py_XDECREF(obfmtid); Py_XDECREF(obmtime); Py_XDECREF(obctime); |