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=3…
==============================================================================
--- 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)