Author: hpoussin
Date: Tue Oct 9 23:01:12 2007
New Revision: 29475
URL:
http://svn.reactos.org/svn/reactos?rev=29475&view=rev
Log:
Do not skip executable name, it is not sent to WinMain command line argument
Modified:
trunk/reactos/base/applications/notepad/main.c
Modified: trunk/reactos/base/applications/notepad/main.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/base/applications/notepad/…
==============================================================================
--- trunk/reactos/base/applications/notepad/main.c (original)
+++ trunk/reactos/base/applications/notepad/main.c Tue Oct 9 23:01:12 2007
@@ -431,21 +431,7 @@
static void HandleCommandLine(LPTSTR cmdline)
{
- TCHAR delimiter;
int opt_print=0;
-
- /* skip white space */
- while (*cmdline == ' ') cmdline++;
-
- /* skip executable name */
- delimiter = (*cmdline == _T('"') ? _T('"') : _T('
'));
-
- do
- {
- cmdline++;
- }
- while (*cmdline && *cmdline != delimiter);
- if (*cmdline == delimiter) cmdline++;
while (*cmdline == _T(' ') || *cmdline == _T('-') || *cmdline ==
_T('/'))
{