Commit 1bb985fb authored by Marcus Meissner's avatar Marcus Meissner Committed by Alexandre Julliard

shdocvw: Check safearray dimension too (Coverity).

parent 631d8340
......@@ -479,7 +479,7 @@ static HRESULT WINAPI ClOleCommandTarget_Exec(IOleCommandTarget *iface,
LONG ind;
HRESULT hres;
if(V_VT(pvaIn) != VT_ARRAY || !sa)
if(V_VT(pvaIn) != VT_ARRAY || !sa || (SafeArrayGetDim(sa) != 1))
return E_INVALIDARG;
ind = 0;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment