mirror of
https://github.com/reactos/reactos.git
synced 2025-05-03 12:50:05 +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:
parent
97fa0caa77
commit
c3d23e2e30
1 changed files with 3 additions and 2 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue