From: Colin Finck Date: Fri, 5 Sep 2008 19:58:49 +0000 (+0000) Subject: Sync cabinet.dll with Wine HEAD (fixes a memory leak) X-Git-Tag: backups/umode-network-branch@37897~207 X-Git-Url: https://git.reactos.org/?p=reactos.git;a=commitdiff_plain;h=9e8367f15e79cc00439ffbc38e114eb43c9cb5b7;hp=e699646de87bfa6c306f2b8edc410d9fb547e08c;ds=sidebyside Sync cabinet.dll with Wine HEAD (fixes a memory leak) svn path=/trunk/; revision=35965 --- diff --git a/reactos/dll/win32/cabinet/cabinet_main.c b/reactos/dll/win32/cabinet/cabinet_main.c index 7ebe63cce6b..35810e3b659 100644 --- a/reactos/dll/win32/cabinet/cabinet_main.c +++ b/reactos/dll/win32/cabinet/cabinet_main.c @@ -338,7 +338,10 @@ HRESULT WINAPI Extract(SESSION *dest, LPCSTR szCabName) return E_FAIL; if (GetFileAttributesA(dest->Destination) == INVALID_FILE_ATTRIBUTES) - return S_OK; + { + res = S_OK; + goto end; + } /* split the cabinet name into path + name */ str = HeapAlloc(GetProcessHeap(), 0, lstrlenA(szCabName)+1);