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

View File

@ -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;
}