wcmd long command lines and pipes

Greg Marsden GMarsden at WESCAM.com
Fri Jul 4 12:17:22 CDT 2003


Change Log:
     This allows longer command lines, up to 2048 bytes with pipes to be 
processed by wcmd



--- /usr/src/redhat/SOURCES/wine-20030618/programs/wcmd/wcmdmain.c 
2003-05-10 22:48:17.000000000 -0400
+++ wcmdmain.c  2003-07-04 11:10:28.000000000 -0400
@@ -191,7 +191,10 @@
         * the currently allocated input and output handles. This allows
         * us to pipe to and read from the command interpreter.
         */
-      WCMD_process_command(cmd);
+      if (strchr(cmd,'|') != NULL)
+          WCMD_pipe(cmd);
+      else
+          WCMD_process_command(cmd);
        HeapFree(GetProcessHeap(), 0, cmd);
        return 0;
    }
@@ -250,7 +253,7 @@

  void WCMD_process_command (char *command) {

-char cmd[1024];
+char cmd[2048];
  char *p;
  int status, i;
  DWORD count;



More information about the wine-patches mailing list