Skip to content

Commit

Permalink
Fix bug in wxAutomationObject introduced by r71574.
Browse files Browse the repository at this point in the history
Check that we have any arguments, expression oleArgs[0] is invalid otherwise.

Closes #14343.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@71578 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
  • Loading branch information
vadz committed May 28, 2012
1 parent ee342e6 commit 12a4c7d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/msw/ole/automtn.cpp
Expand Up @@ -187,7 +187,7 @@ bool wxAutomationObject::Invoke(const wxString& member, int action,
}

dispparams.rgdispidNamedArgs = &dispIds[0] + 1;
dispparams.rgvarg = &oleArgs[0];
dispparams.rgvarg = oleArgs.empty() ? NULL : &oleArgs[0];
dispparams.cArgs = noArgs;
dispparams.cNamedArgs = namedArgCount;

Expand Down

0 comments on commit 12a4c7d

Please sign in to comment.