From: Thomas Faller Subject: [PATCH] cmd: fix invalid "else if" execution Message-Id: <5589D0B4.3000504@gmx.de> Date: Tue, 23 Jun 2015 23:33:40 +0200 Fix for: https://bugs.winehq.org/show_bug.cgi?id=37478 --- programs/cmd/builtins.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
Fix for:  https://bugs.winehq.org/show_bug.cgi?id=37478
---
 programs/cmd/builtins.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)




diff --git a/programs/cmd/builtins.c b/programs/cmd/builtins.c index 30b8684..5309bc0 100644 --- a/programs/cmd/builtins.c +++ b/programs/cmd/builtins.c @@ -1561,7 +1561,7 @@ static void WCMD_part_execute(CMD_LIST **cmdList, const WCHAR *firstcmd, (*cmdList)->command)) { /* Swap between if and else processing */ - processThese = !processThese; + processThese = !executecmds; /* Process the ELSE part */ if (processThese) {