mirror of
https://github.com/reactos/wine.git
synced 2025-02-13 16:59:37 +00:00
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;
|
hr = S_OK;
|
||||||
rglpwstrName[i] = CoTaskMemAlloc((len + 1) * sizeof(WCHAR));
|
rglpwstrName[i] = CoTaskMemAlloc((len + 1) * sizeof(WCHAR));
|
||||||
if (rglpwstrName)
|
if (rglpwstrName[i])
|
||||||
memcpy(rglpwstrName, name, (len + 1) * sizeof(WCHAR));
|
memcpy(rglpwstrName[i], name, (len + 1) * sizeof(WCHAR));
|
||||||
else
|
else
|
||||||
hr = STG_E_INSUFFICIENTMEMORY;
|
hr = STG_E_INSUFFICIENTMEMORY;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user