mirror of
https://github.com/ApfelTeeSaft/reactos.git
synced 2026-09-02 12:23:31 +00:00
[CABINET]
- always close the cabinet after being done, even of case of failure. svn path=/trunk/; revision=56045
This commit is contained in:
@@ -2105,7 +2105,7 @@ bool CCabinet::CreateSimpleCabinet()
|
||||
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 @@ bool CCabinet::CreateSimpleCabinet()
|
||||
goto cleanup;
|
||||
}
|
||||
|
||||
cleanup:
|
||||
CloseCabinet();
|
||||
bRet = true;
|
||||
|
||||
cleanup:
|
||||
cleanup2:
|
||||
DestroySearchCriteria();
|
||||
return bRet;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user