[pywin32-checkins] pywin32/com/TestSources/PyCOMTest PyCOMImpl.cpp, 1.16, 1.17
OLD project page for the Python extensions for Windows
Brought to you by:
mhammond
From: Mark H. <mha...@us...> - 2008-04-03 07:21:37
|
Update of /cvsroot/pywin32/pywin32/com/TestSources/PyCOMTest In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv17823 Modified Files: PyCOMImpl.cpp Log Message: Avoid shadowing the 'hr' var, so we terminate the loop correctly on error. Index: PyCOMImpl.cpp =================================================================== RCS file: /cvsroot/pywin32/pywin32/com/TestSources/PyCOMTest/PyCOMImpl.cpp,v retrieving revision 1.16 retrieving revision 1.17 diff -C2 -d -r1.16 -r1.17 *** PyCOMImpl.cpp 4 Sep 2007 10:53:29 -0000 1.16 --- PyCOMImpl.cpp 3 Apr 2008 07:21:41 -0000 1.17 *************** *** 357,361 **** DISPID dispid; OLECHAR *names[] = { L"OnFire" }; ! HRESULT hr = pEvent->GetIDsOfNames(IID_NULL, names, 1, 0, &dispid); if (SUCCEEDED(hr)) { CComVariant v(nID); --- 357,361 ---- DISPID dispid; OLECHAR *names[] = { L"OnFire" }; ! hr = pEvent->GetIDsOfNames(IID_NULL, names, 1, 0, &dispid); if (SUCCEEDED(hr)) { CComVariant v(nID); |