[pywin32-checkins] pywin32/com/win32com/src oleargs.cpp,1.32,1.33
OLD project page for the Python extensions for Windows
Brought to you by:
mhammond
From: Mark H. <mha...@us...> - 2006-02-05 07:27:51
|
Update of /cvsroot/pywin32/pywin32/com/win32com/src In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv24676 Modified Files: oleargs.cpp Log Message: PyCom_PyObjectFromVariant checks for NULL input variant and returns None. Index: oleargs.cpp =================================================================== RCS file: /cvsroot/pywin32/pywin32/com/win32com/src/oleargs.cpp,v retrieving revision 1.32 retrieving revision 1.33 diff -C2 -d -r1.32 -r1.33 *** oleargs.cpp 19 Dec 2005 04:46:44 -0000 1.32 --- oleargs.cpp 5 Feb 2006 07:27:43 -0000 1.33 *************** *** 207,210 **** --- 207,214 ---- PyObject * result = NULL; + if (!var) { + Py_INCREF(Py_None); + return Py_None; + } /* skip past any variant references to a "real" variant (Why do we do this? Why is it only a VARIANT? whats the story, morning glory? |