diff --git a/reactos/tools/cabman/main.cxx b/reactos/tools/cabman/main.cxx index 471c306fd4e..1d25b3012f3 100644 --- a/reactos/tools/cabman/main.cxx +++ b/reactos/tools/cabman/main.cxx @@ -553,16 +553,7 @@ bool CCABManager::Run() switch (Mode) { case CM_MODE_CREATE: - case CM_MODE_CREATE_SIMPLE: - { - bool ret; - if(Mode == CM_MODE_CREATE) - ret = CreateCabinet(); - else - ret = CreateSimpleCabinet(); - CloseCabinet(); - return ret; - } + return CreateCabinet(); case CM_MODE_DISPLAY: return DisplayCabinet(); @@ -570,6 +561,9 @@ bool CCABManager::Run() case CM_MODE_EXTRACT: return ExtractFromCabinet(); + case CM_MODE_CREATE_SIMPLE: + return CreateSimpleCabinet(); + default: break; }