[ros-diffs] [cfinck] 33487: 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.

cfinck at svn.reactos.org cfinck at svn.reactos.org
Mon May 12 23:26:39 CEST 2008


Author: cfinck
Date: Mon May 12 16:26:38 2008
New Revision: 33487

URL: http://svn.reactos.org/svn/reactos?rev=33487&view=rev
Log:
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.

Modified:
    trunk/reactos/base/shell/cmd/cmd.c

Modified: trunk/reactos/base/shell/cmd/cmd.c
URL: http://svn.reactos.org/svn/reactos/trunk/reactos/base/shell/cmd/cmd.c?rev=33487&r1=33486&r2=33487&view=diff
==============================================================================
--- trunk/reactos/base/shell/cmd/cmd.c [iso-8859-1] (original)
+++ trunk/reactos/base/shell/cmd/cmd.c [iso-8859-1] Mon May 12 16:26:38 2008
@@ -1529,11 +1529,6 @@
 
 		*cp = _T('\0');
 
-		/* strip trailing spaces */
-		while ((--cp >= commandline) && _istspace (*cp));
-
-		*(cp + 1) = _T('\0');
-
 		/* JPP 19980807 */
 		/* Echo batch file line */
 		if (bEchoThisLine)



More information about the Ros-diffs mailing list