Module: wine Branch: master Commit: c19dd4764307c5101273a658299915978ddc7e6e URL: http://source.winehq.org/git/wine.git/?a=commit;h=c19dd4764307c5101273a65829...
Author: André Hentschel nerv@dawncrow.de Date: Sun Oct 28 16:16:35 2012 +0100
fusion: Reorder some code to avoid memory leak (coverity).
---
dlls/fusion/fusion.c | 6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/dlls/fusion/fusion.c b/dlls/fusion/fusion.c index 6ace81f..e79fa3a 100644 --- a/dlls/fusion/fusion.c +++ b/dlls/fusion/fusion.c @@ -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;