[PATCH 3/3] cmd: Do not reset errorlevel during SET

Detlef Riekenberg wine.dev at web.de
Tue Dec 14 16:59:37 CST 2010


Needed to get the example script in bug 21173 fully working
http://forums.techguy.org/dos-pda-other/77291-batch-file-tic-tac-toe.html

There are still some places, where our cmd modify ERRORLEVEL incorrect,
but that needs more tests.

--
By by ... Detlef
---
 programs/cmd/builtins.c |    1 -
 1 files changed, 0 insertions(+), 1 deletions(-)

diff --git a/programs/cmd/builtins.c b/programs/cmd/builtins.c
index e18d328..43e6c0d 100644
--- a/programs/cmd/builtins.c
+++ b/programs/cmd/builtins.c
@@ -2269,7 +2269,6 @@ void WCMD_setshow_env (WCHAR *s) {
   int status;
   static const WCHAR parmP[] = {'/','P','\0'};
 
-  errorlevel = 0;
   if (param1[0] == 0x00 && quals[0] == 0x00) {
     env = GetEnvironmentStringsW();
     WCMD_setshow_sortenv( env, NULL );
-- 
1.7.1




More information about the wine-patches mailing list