cmd: fixed wrong else statement processing

Михаил Быстрянцев ho-rr-or at mail.ru
Sat Jan 10 08:50:08 CST 2015


Fixed bug https://bugs.winehq.org/show_bug.cgi?id=37478

Swapping between if and else processing was occurred every time when else statement occurred, so each odd else/else if was executed.

if 1 == 1 (
  echo 1
) else if 1 == 1 (
  echo 2
) else if 1 == 1(
  echo 3
) else if 1 == 1 (
  echo 4
) else (
  echo 5
)

Output was:
1
3
5
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: 0001-cmd-fixed-wrong-else-statement-processing.txt
URL: <http://www.winehq.org/pipermail/wine-patches/attachments/20150110/ae01b2a6/attachment.txt>


More information about the wine-patches mailing list