We could call SysFreeString() on uninitialized pointers if IDispatch::Invoke()
failed.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@62908
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
HRESULT hr;
DISPPARAMS dispparams;
unsigned int uiArgErr;
HRESULT hr;
DISPPARAMS dispparams;
unsigned int uiArgErr;
// Get the IDs for the member and its arguments. GetIDsOfNames expects the
// member name as the first name, followed by argument names (if any).
// Get the IDs for the member and its arguments. GetIDsOfNames expects the
// member name as the first name, followed by argument names (if any).
dispparams.cArgs = noArgs;
dispparams.cNamedArgs = namedArgCount;
dispparams.cArgs = noArgs;
dispparams.cNamedArgs = namedArgCount;
- excep.pfnDeferredFillIn = NULL;
+ EXCEPINFO excep;
+ wxZeroMemory(excep);
hr = ((IDispatch*)m_dispatchPtr)->Invoke(dispIds[0], IID_NULL, LOCALE_SYSTEM_DEFAULT,
(WORD)action, &dispparams, vReturnPtr, &excep, &uiArgErr);
hr = ((IDispatch*)m_dispatchPtr)->Invoke(dispIds[0], IID_NULL, LOCALE_SYSTEM_DEFAULT,
(WORD)action, &dispparams, vReturnPtr, &excep, &uiArgErr);