From 8abd5b76c454a5dac37101292fe8fb0c1f4e1acc Mon Sep 17 00:00:00 2001 From: Nikolay Sivov Date: Sun, 7 Jun 2015 23:55:48 +0300 Subject: [PATCH] gameux: Use matching heap call (Coverity). --- dlls/gameux/gameexplorer.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dlls/gameux/gameexplorer.c b/dlls/gameux/gameexplorer.c index 6bdb2e4459..63bf69d736 100644 --- a/dlls/gameux/gameexplorer.c +++ b/dlls/gameux/gameexplorer.c @@ -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; }