[pywin32-checkins] /hgroot/pywin32/pywin32: Fix another potential crash in SHGetIDL...
OLD project page for the Python extensions for Windows
Brought to you by:
mhammond
From: <pyw...@li...> - 2014-06-03 14:55:02
|
changeset e1aebad91463 in /hgroot/pywin32/pywin32 details: http://pywin32.hg.sourceforge.net/hgweb/pywin32/pywin32/hgroot/pywin32/pywin32?cmd=changeset;node=e1aebad91463 summary: Fix another potential crash in SHGetIDListFromObject diffstat: com/win32comext/shell/src/shell.cpp | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diffs (12 lines): diff -r 2c46390ed106 -r e1aebad91463 com/win32comext/shell/src/shell.cpp --- a/com/win32comext/shell/src/shell.cpp Tue Jun 03 10:45:01 2014 -0400 +++ b/com/win32comext/shell/src/shell.cpp Tue Jun 03 10:54:18 2014 -0400 @@ -3277,7 +3277,7 @@ if(!PyArg_ParseTuple(args, "O:SHGetIDListFromObject", &ob)) return NULL; - IUnknown *unk; + IUnknown *unk = NULL; PIDLIST_ABSOLUTE pidl; HRESULT hr; if (!PyCom_InterfaceFromPyInstanceOrObject(ob, IID_IUnknown, (void **)&unk, FALSE/* bNoneOK */)) |