Enlarge the Options buffer.
[reactos.git] / reactos / tools / cabman / dfp.cxx
index 09a7e04..a48934c 100755 (executable)
@@ -1016,7 +1016,7 @@ unsigned long CDFParser::PerformFileCopy()
     char SrcName[MAX_PATH];
     char DstName[MAX_PATH];
     char InfLine[MAX_PATH];
-    char Options[8];
+    char Options[128];
     char BaseFilename[MAX_PATH];
 
     *SrcName = '\0';
@@ -1112,7 +1112,7 @@ unsigned long CDFParser::PerformFileCopy()
         WriteInfLine(InfLine);
         break;
     case CAB_STATUS_CANNOT_OPEN:
-       if (strchr(Options,'o'))
+       if (strstr(Options,"optional"))
        {
                Status = CAB_STATUS_SUCCESS;
                printf("Optional file does not exist: %s.\n", SrcName);
@@ -1127,7 +1127,7 @@ unsigned long CDFParser::PerformFileCopy()
         printf("Cannot add file: %s (%lu).\n", SrcName, Status);
         break;
     }
-    return CAB_STATUS_SUCCESS;
+    return Status;
 }