fusion: Reorder some code to avoid memory leak (coverity).
This commit is contained in:
parent
436e9f9c06
commit
c19dd47643
|
@ -76,9 +76,9 @@ static HRESULT get_corversion(LPWSTR version, DWORD size)
|
|||
|
||||
pGetCORVersion = (void *)GetProcAddress(hmscoree, "GetCORVersion");
|
||||
if (!pGetCORVersion)
|
||||
return E_FAIL;
|
||||
|
||||
hr = pGetCORVersion(version, size, &len);
|
||||
hr = E_FAIL;
|
||||
else
|
||||
hr = pGetCORVersion(version, size, &len);
|
||||
|
||||
FreeLibrary(hmscoree);
|
||||
return hr;
|
||||
|
|
Loading…
Reference in New Issue