ole32: Access the array entry, not the array (Coverity).
This commit is contained in:
parent
3f42609042
commit
2395ea98bb
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue