commit | bcaf4fb43f780b307d21aefc6ad6a51903ec76ae | [log] [tgz] |
---|---|---|
author | Jason Edmeades <jason.edmeades@googlemail.com> | Tue Sep 11 21:43:05 2007 +0100 |
committer | Alexandre Julliard <julliard@winehq.org> | Wed Sep 12 12:39:41 2007 +0200 |
tree | 1f1c5b50f3185227677c062f0d03289bfe929308 | |
parent | 118f3a6592887bc662e7a3204d41b4443f8fcd01 [diff] [blame] |
cmd.exe: Add suport for if 1==1 echo yes.
diff --git a/programs/cmd/builtins.c b/programs/cmd/builtins.c index 8fbf292..ee8f1b3 100644 --- a/programs/cmd/builtins.c +++ b/programs/cmd/builtins.c
@@ -1160,6 +1160,8 @@ else { strcpyW (condition, param1); } + WINE_TRACE("Condition: %s\n", wine_dbgstr_w(condition)); + if (!lstrcmpiW (condition, errlvlW)) { if (errorlevel >= atoiW(WCMD_parameter (p, 1+negate, NULL))) test = 1; WCMD_parameter (p, 2+negate, &command);