From 083c5dcbd222fb8ae2f8e3cd1a157e095ad44835 Mon Sep 17 00:00:00 2001 From: Colin Finck Date: Mon, 12 May 2008 21:26:38 +0000 Subject: [PATCH] Don't strip trailing spaces from the command line This way, stuff like "notepad abc.txt " will correctly pass "abc.txt " as the filename like Windows does. See issue #1818 for more details. svn path=/trunk/; revision=33487 --- reactos/base/shell/cmd/cmd.c | 5 ----- 1 file changed, 5 deletions(-) diff --git a/reactos/base/shell/cmd/cmd.c b/reactos/base/shell/cmd/cmd.c index 853e5d15db6..3b310b1ad6c 100644 --- a/reactos/base/shell/cmd/cmd.c +++ b/reactos/base/shell/cmd/cmd.c @@ -1529,11 +1529,6 @@ ProcessInput (BOOL bFlag) *cp = _T('\0'); - /* strip trailing spaces */ - while ((--cp >= commandline) && _istspace (*cp)); - - *(cp + 1) = _T('\0'); - /* JPP 19980807 */ /* Echo batch file line */ if (bEchoThisLine)