mirror of
https://github.com/ApfelTeeSaft/reactos.git
synced 2026-08-30 12:23:28 +00:00
Do not skip executable name, it is not sent to WinMain command line argument
svn path=/trunk/; revision=29475
This commit is contained in:
@@ -431,22 +431,8 @@ static int AlertFileDoesNotExist(LPCTSTR szFileName)
|
||||
|
||||
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('/'))
|
||||
{
|
||||
TCHAR option;
|
||||
|
||||
Reference in New Issue
Block a user