diff --git a/reactos/tools/cabman/dfp.cxx b/reactos/tools/cabman/dfp.cxx index dfb33a0ebc2..b0032ba3126 100755 --- a/reactos/tools/cabman/dfp.cxx +++ b/reactos/tools/cabman/dfp.cxx @@ -329,8 +329,8 @@ unsigned long CDFParser::Parse() } else { /* File copy */ Status = PerformFileCopy(); - - if (Status == CAB_STATUS_FAILURE) { + + if (Status != CAB_STATUS_SUCCESS) { printf("Directive file contains errors at line %d.\n", (unsigned int)CurrentLine); DPRINT(MID_TRACE, ("Error while copying file.\n")); } diff --git a/reactos/tools/cabman/main.cxx b/reactos/tools/cabman/main.cxx index faede8131d7..0387332f305 100755 --- a/reactos/tools/cabman/main.cxx +++ b/reactos/tools/cabman/main.cxx @@ -316,9 +316,9 @@ bool CCABManager::CreateCabinet() return false; } - Parse(); + Status = Parse(); - return true; + return (Status == CAB_STATUS_SUCCESS ? true : false); }