Commit f205eca5 authored by Mike McCormack's avatar Mike McCormack Committed by Alexandre Julliard

ole32: FreePropVariantArray should return an error if rgvars is null.

As suggested by Rob Shearman.
parent 83974b21
......@@ -2826,6 +2826,9 @@ HRESULT WINAPI FreePropVariantArray(ULONG cVariants, /* [in] */
TRACE("(%lu, %p)\n", cVariants, rgvars);
if (!rgvars)
return E_INVALIDARG;
for(i = 0; i < cVariants; i++)
PropVariantClear(&rgvars[i]);
......
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