From e3757a0fb17aa39eccb6d551fb2cb7ccbf4d7c5d Mon Sep 17 00:00:00 2001 From: Alex Ionescu Date: Tue, 17 May 2005 20:43:27 +0000 Subject: [PATCH] make cabman report error when file doesnt exist. Patch by Usurp svn path=/trunk/; revision=15388 --- reactos/tools/cabman/dfp.cxx | 4 ++-- reactos/tools/cabman/main.cxx | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) 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); }