mirror of
https://github.com/reactos/wine.git
synced 2025-02-09 13:43:16 +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;
|
||||
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…
x
Reference in New Issue
Block a user