Commit c19dd476 authored by André Hentschel's avatar André Hentschel Committed by Alexandre Julliard

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

parent 436e9f9c
...@@ -76,9 +76,9 @@ static HRESULT get_corversion(LPWSTR version, DWORD size) ...@@ -76,9 +76,9 @@ static HRESULT get_corversion(LPWSTR version, DWORD size)
pGetCORVersion = (void *)GetProcAddress(hmscoree, "GetCORVersion"); pGetCORVersion = (void *)GetProcAddress(hmscoree, "GetCORVersion");
if (!pGetCORVersion) if (!pGetCORVersion)
return E_FAIL; hr = E_FAIL;
else
hr = pGetCORVersion(version, size, &len); hr = pGetCORVersion(version, size, &len);
FreeLibrary(hmscoree); FreeLibrary(hmscoree);
return hr; return hr;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment