FW: [11/16] CMD.exe: Correct some commented out code

Ann & Jason Edmeades us at edmeades.me.uk
Tue Feb 20 11:50:41 CST 2007



-----Original Message-----
From: Ann & Jason Edmeades [mailto:us at edmeades.me.uk] 
Sent: 20 February 2007 00:42
To: 'wine-patches at winehq.org'
Subject: [11/16] CMD.exe: Correct some commented out code

Note: Leaving it ifdeffed out is fine, but it put in, it needs to work and
this is about to be modified in a subsequent patch hence I was testing it
-------------- next part --------------
>From nobody Mon Sep 17 00:00:00 2001
From: Jason Edmeades <us at edmeades.me.uk>
Date: Sun Feb 18 19:01:04 2007 +0000
Subject: [PATCH] Correct commented out code to support autoexec.bat

Note: I still leave it disabled, but the code thats there at present
will completely fail if ever enabled, so this just corrects it.

---

 programs/cmd/wcmdmain.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

65a1e30f341e5e98e97ff628dc2094638d21e984
diff --git a/programs/cmd/wcmdmain.c b/programs/cmd/wcmdmain.c
index d5c6157..3c3a154 100755
--- a/programs/cmd/wcmdmain.c
+++ b/programs/cmd/wcmdmain.c
@@ -256,6 +256,7 @@ int main (int argc, char *argv[])
       HeapFree(GetProcessHeap(), 0, cmd);
   }
 
+#if 0
 /*
  *	If there is an AUTOEXEC.BAT file, try to execute it.
  */
@@ -264,8 +265,7 @@ int main (int argc, char *argv[])
   h = CreateFile (string, GENERIC_READ, FILE_SHARE_READ, NULL, OPEN_EXISTING, FILE_ATTRIBUTE_NORMAL, NULL);
   if (h != INVALID_HANDLE_VALUE) {
     CloseHandle (h);
-#if 0
-    WCMD_batch_command (string);
+    WCMD_batch ((char *)"\\autoexec.bat", (char *)"\\autoexec.bat", 0, NULL, INVALID_HANDLE_VALUE);
 #endif
   }
 
-- 
1.3.0



More information about the wine-patches mailing list