mirror of
https://github.com/reactos/reactos.git
synced 2024-08-26 05:08:39 +00:00
make cabman report error when file doesnt exist. Patch by Usurp
svn path=/trunk/; revision=15388
This commit is contained in:
parent
e3ac1e89d5
commit
e3757a0fb1
|
@ -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);
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue