Commit 8abd5b76 authored by Nikolay Sivov's avatar Nikolay Sivov Committed by Alexandre Julliard

gameux: Use matching heap call (Coverity).

parent 7bb743cc
...@@ -756,7 +756,7 @@ HRESULT GAMEUX_FindGameInstanceId( ...@@ -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;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment