ole32: FreePropVariantArray should return an error if rgvars is null.
As suggested by Rob Shearman.
This commit is contained in:
parent
83974b21fa
commit
f205eca5ad
|
@ -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]);
|
||||
|
||||
|
|
Loading…
Reference in New Issue