[ros-diffs] [ion] 15388: make cabman report error when file doesnt exist. Patch by Usurp

ion at svn.reactos.com ion at svn.reactos.com
Tue May 17 22:43:29 CEST 2005


make cabman report error when file doesnt exist. Patch by Usurp
Modified: trunk/reactos/tools/cabman/dfp.cxx
Modified: trunk/reactos/tools/cabman/main.cxx
  _____  

Modified: trunk/reactos/tools/cabman/dfp.cxx
--- trunk/reactos/tools/cabman/dfp.cxx	2005-05-17 20:28:57 UTC (rev
15387)
+++ trunk/reactos/tools/cabman/dfp.cxx	2005-05-17 20:43:27 UTC (rev
15388)
@@ -329,8 +329,8 @@

                     } 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"));
                         }
  _____  

Modified: trunk/reactos/tools/cabman/main.cxx
--- trunk/reactos/tools/cabman/main.cxx	2005-05-17 20:28:57 UTC (rev
15387)
+++ trunk/reactos/tools/cabman/main.cxx	2005-05-17 20:43:27 UTC (rev
15388)
@@ -316,9 +316,9 @@

         return false;
     }
 
-    Parse();
+    Status = Parse();
 
-    return true;
+    return (Status == CAB_STATUS_SUCCESS ? true : false);
 }
 
 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.reactos.org/pipermail/ros-diffs/attachments/20050517/8dee77dc/attachment.html


More information about the Ros-diffs mailing list