gameux: Use matching heap call (Coverity).

This commit is contained in:
Nikolay Sivov 2015-06-07 23:55:48 +03:00 committed by Alexandre Julliard
parent 7bb743cca6
commit 8abd5b76c4
1 changed files with 1 additions and 1 deletions

View File

@ -756,7 +756,7 @@ HRESULT GAMEUX_FindGameInstanceId(
if(SUCCEEDED(hr)) if(SUCCEEDED(hr))
{ {
++dwMaxSubKeyLen; /* for string terminator */ ++dwMaxSubKeyLen; /* for string terminator */
lpName = CoTaskMemAlloc(dwMaxSubKeyLen*sizeof(WCHAR)); lpName = HeapAlloc(GetProcessHeap(), 0, dwMaxSubKeyLen*sizeof(WCHAR));
if(!lpName) hr = E_OUTOFMEMORY; if(!lpName) hr = E_OUTOFMEMORY;
} }