Author: cfinck
Date: Fri Sep 5 14:58:49 2008
New Revision: 35965
URL:
http://svn.reactos.org/svn/reactos?rev=35965&view=rev
Log:
Sync cabinet.dll with Wine HEAD (fixes a memory leak)
Modified:
trunk/reactos/dll/win32/cabinet/cabinet_main.c
Modified: trunk/reactos/dll/win32/cabinet/cabinet_main.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/cabinet/cabinet_…
==============================================================================
--- trunk/reactos/dll/win32/cabinet/cabinet_main.c [iso-8859-1] (original)
+++ trunk/reactos/dll/win32/cabinet/cabinet_main.c [iso-8859-1] Fri Sep 5 14:58:49 2008
@@ -338,7 +338,10 @@
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);