mirror of
https://github.com/reactos/wine.git
synced 2024-11-24 20:30:01 +00:00
gameux: Use matching heap call (Coverity).
This commit is contained in:
parent
7bb743cca6
commit
8abd5b76c4
@ -756,7 +756,7 @@ HRESULT GAMEUX_FindGameInstanceId(
|
||||
if(SUCCEEDED(hr))
|
||||
{
|
||||
++dwMaxSubKeyLen; /* for string terminator */
|
||||
lpName = CoTaskMemAlloc(dwMaxSubKeyLen*sizeof(WCHAR));
|
||||
lpName = HeapAlloc(GetProcessHeap(), 0, dwMaxSubKeyLen*sizeof(WCHAR));
|
||||
if(!lpName) hr = E_OUTOFMEMORY;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user