Author: jgardou
Date: Mon Mar 5 18:51:05 2012
New Revision: 56045
URL:
http://svn.reactos.org/svn/reactos?rev=56045&view=rev
Log:
[CABINET]
- always close the cabinet after being done, even of case of failure.
Modified:
trunk/reactos/tools/cabman/cabinet.cxx
Modified: trunk/reactos/tools/cabman/cabinet.cxx
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/tools/cabman/cabinet.cxx?r…
==============================================================================
--- trunk/reactos/tools/cabman/cabinet.cxx [iso-8859-1] (original)
+++ trunk/reactos/tools/cabman/cabinet.cxx [iso-8859-1] Mon Mar 5 18:51:05 2012
@@ -2105,7 +2105,7 @@
if (Status != CAB_STATUS_SUCCESS)
{
DPRINT(MIN_TRACE, ("Cannot create cabinet (%u).\n", (UINT)Status));
- goto cleanup;
+ goto cleanup2;
}
// Add each file in the criteria list
@@ -2217,10 +2217,11 @@
goto cleanup;
}
+cleanup:
CloseCabinet();
bRet = true;
-cleanup:
+cleanup2:
DestroySearchCriteria();
return bRet;
}