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

As suggested by Rob Shearman.
This commit is contained in:
Mike McCormack 2006-08-14 14:06:36 +09:00 committed by Alexandre Julliard
parent 83974b21fa
commit f205eca5ad
1 changed files with 3 additions and 0 deletions

View File

@ -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]);