[pywin32-checkins] /hgroot/pywin32/pywin32: Add a set of braces
OLD project page for the Python extensions for Windows
Brought to you by:
mhammond
From: <pyw...@li...> - 2012-08-06 05:44:41
|
changeset a81ece0ec74d in /hgroot/pywin32/pywin32 details: http://pywin32.hg.sourceforge.net/hgweb/pywin32/pywin32/hgroot/pywin32/pywin32?cmd=changeset;node=a81ece0ec74d summary: Add a set of braces diffstat: com/win32com/src/PythonCOM.cpp | 3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) diffs (20 lines): diff -r 02686d59297d -r a81ece0ec74d com/win32com/src/PythonCOM.cpp --- a/com/win32com/src/PythonCOM.cpp Mon Aug 06 12:04:10 2012 +1000 +++ b/com/win32com/src/PythonCOM.cpp Mon Aug 06 01:40:54 2012 -0400 @@ -267,7 +267,7 @@ if (result==NULL) goto done; for (i=0;i<numIIDs;i++) { PyObject *obNew; - if (mqi[i].hr==0) + if (mqi[i].hr==0){ obNew = PyCom_PyObjectFromIUnknown(mqi[i].pItf, *mqi[i].pIID, FALSE); mqi[i].pItf = NULL; if (!obNew) { @@ -275,6 +275,7 @@ result = NULL; goto done; } + } else { obNew = Py_None; Py_INCREF(Py_None); |