mirror of
https://github.com/reactos/reactos.git
synced 2024-09-13 06:11:59 +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 {
|
} else {
|
||||||
/* File copy */
|
/* File copy */
|
||||||
Status = PerformFileCopy();
|
Status = PerformFileCopy();
|
||||||
|
|
||||||
if (Status == CAB_STATUS_FAILURE) {
|
if (Status != CAB_STATUS_SUCCESS) {
|
||||||
printf("Directive file contains errors at line %d.\n", (unsigned int)CurrentLine);
|
printf("Directive file contains errors at line %d.\n", (unsigned int)CurrentLine);
|
||||||
DPRINT(MID_TRACE, ("Error while copying file.\n"));
|
DPRINT(MID_TRACE, ("Error while copying file.\n"));
|
||||||
}
|
}
|
||||||
|
|
|
@ -316,9 +316,9 @@ bool CCABManager::CreateCabinet()
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
Parse();
|
Status = Parse();
|
||||||
|
|
||||||
return true;
|
return (Status == CAB_STATUS_SUCCESS ? true : false);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue