[XCOPY] Sync with Wine Staging 1.7.37. CORE-9246
[reactos.git] / reactos / base / applications / cmdutils / xcopy / xcopy.c
index d9c9b37..d07004c 100644 (file)
@@ -276,11 +276,9 @@ static BOOL XCOPY_ProcessExcludeFile(WCHAR* filename, WCHAR* endOfName) {
         EXCLUDELIST *thisEntry;
         int length = lstrlenW(buffer);
 
-        /* Strip CRLF */
-        buffer[length-1] = 0x00;
-
         /* If more than CRLF */
         if (length > 1) {
+          buffer[length-1] = 0;  /* strip CRLF */
           thisEntry = HeapAlloc(GetProcessHeap(), 0, sizeof(EXCLUDELIST));
           thisEntry->next = excludeList;
           excludeList = thisEntry;
@@ -833,6 +831,9 @@ static int XCOPY_ParseCommandLine(WCHAR *suppliedsource,
             case '?': XCOPY_wprintf(XCOPY_LoadMessage(STRING_HELP));
                       rc = RC_HELP;
                       goto out;
+            case 'V':
+                WINE_FIXME("ignoring /V\n");
+                break;
             default:
                 WINE_TRACE("Unhandled parameter '%s'\n", wine_dbgstr_w(word));
                 XCOPY_wprintf(XCOPY_LoadMessage(STRING_INVPARM), word);