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))
|
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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue