mirror of
https://github.com/reactos/wine.git
synced 2024-11-24 20:30:01 +00:00
gameux: Avoid double free (coverity).
This commit is contained in:
parent
07fd75badd
commit
97dbccf5f2
@ -783,13 +783,15 @@ HRESULT GAMEUX_FindGameInstanceId(
|
||||
sConfigGDFBinaryPath, &lpValue);
|
||||
|
||||
if(SUCCEEDED(hr))
|
||||
{
|
||||
if(lstrcmpW(lpValue, sGDFBinaryPath)==0)
|
||||
{
|
||||
/* key found, let's copy instance id and exit */
|
||||
hr = (GUIDFromStringW(lpName, pInstanceId) ? S_OK : E_FAIL);
|
||||
found = TRUE;
|
||||
}
|
||||
HeapFree(GetProcessHeap(), 0, lpValue);
|
||||
HeapFree(GetProcessHeap(), 0, lpValue);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user