mirror of
https://github.com/reactos/reactos.git
synced 2026-05-22 23:30:07 +08:00
make cabman report error when file doesnt exist. Patch by Usurp
svn path=/trunk/; revision=15388
This commit is contained in:
@@ -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"));
|
||||
}
|
||||
|
||||
@@ -316,9 +316,9 @@ bool CCABManager::CreateCabinet()
|
||||
return false;
|
||||
}
|
||||
|
||||
Parse();
|
||||
Status = Parse();
|
||||
|
||||
return true;
|
||||
return (Status == CAB_STATUS_SUCCESS ? true : false);
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user