fusion: Reorder some code to avoid memory leak (coverity).

This commit is contained in:
André Hentschel 2012-10-28 16:16:35 +01:00 committed by Alexandre Julliard
parent 436e9f9c06
commit c19dd47643
1 changed files with 3 additions and 3 deletions

View File

@ -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;