[ros-diffs] [jgardou] 56045: [CABINET] - always close the cabinet after being done, even of case of failure.

jgardou at svn.reactos.org jgardou at svn.reactos.org
Mon Mar 5 18:51:06 UTC 2012


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?rev=56045&r1=56044&r2=56045&view=diff
==============================================================================
--- 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;
 }




More information about the Ros-diffs mailing list