ole32: Access the array entry, not the array (Coverity).

This commit is contained in:
Marcus Meissner 2011-06-26 16:43:02 +02:00 committed by Alexandre Julliard
parent 3f42609042
commit 2395ea98bb
1 changed files with 2 additions and 2 deletions

View File

@ -720,8 +720,8 @@ static HRESULT WINAPI IPropertyStorage_fnReadPropertyNames(
hr = S_OK;
rglpwstrName[i] = CoTaskMemAlloc((len + 1) * sizeof(WCHAR));
if (rglpwstrName)
memcpy(rglpwstrName, name, (len + 1) * sizeof(WCHAR));
if (rglpwstrName[i])
memcpy(rglpwstrName[i], name, (len + 1) * sizeof(WCHAR));
else
hr = STG_E_INSUFFICIENTMEMORY;
}