From 517ed443963e1babcc37fbeade984a5e1fc12605 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20Delanoy?= Date: Thu, 25 Oct 2012 23:47:58 +0200 Subject: [PATCH] cmd: Correctly set the 'raw' parameter in calls to WCMD_parameter in WCMD_if. --- programs/cmd/builtins.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/programs/cmd/builtins.c b/programs/cmd/builtins.c index 8eaa9e77b94..768a53b3b7c 100644 --- a/programs/cmd/builtins.c +++ b/programs/cmd/builtins.c @@ -2389,8 +2389,8 @@ void WCMD_if (WCHAR *p, CMD_LIST **cmdList) { /* We need to get potential surrounding double quotes, so param1/2 can't be used */ WCHAR *leftPart, *leftPartEnd, *rightPart, *rightPartEnd; s += 2; - WCMD_parameter(p, 0+negate+caseInsensitive, &leftPart, &leftPartEnd, FALSE, FALSE); - WCMD_parameter(p, 1+negate+caseInsensitive, &rightPart, &rightPartEnd, FALSE, FALSE); + WCMD_parameter(p, 0+negate+caseInsensitive, &leftPart, &leftPartEnd, TRUE, FALSE); + WCMD_parameter(p, 1+negate+caseInsensitive, &rightPart, &rightPartEnd, TRUE, FALSE); test = caseInsensitive ? (CompareStringW(LOCALE_SYSTEM_DEFAULT, NORM_IGNORECASE, leftPart, leftPartEnd-leftPart+1,