1
0
Fork 0
forked from fte/fteqw
git-svn-id: https://svn.code.sf.net/p/fteqw/code/branches/wip@3570 fc73d0e0-1445-4013-8a0c-d673dee63da5
This commit is contained in:
Spoike 2010-08-01 23:35:05 +00:00
parent 449e38c590
commit 29ce27e35c

View file

@ -1556,19 +1556,19 @@ int __cdecl main(void)
char *cmdline; char *cmdline;
FreeConsole(); FreeConsole();
cmdline = GetCommandLine(); cmdline = GetCommandLine();
while (*cmdline && cmdline == ' ') while (*cmdline && *cmdline == ' ')
cmdline++; cmdline++;
if (*cmdline == '\"') if (*cmdline == '\"')
{ {
cmdline++; cmdline++;
while (*cmdline && cmdline != '\"') while (*cmdline && *cmdline != '\"')
cmdline++; cmdline++;
if (*cmdline == '\"') if (*cmdline == '\"')
cmdline++; cmdline++;
} }
else else
{ {
while (*cmdline && cmdline != ' ') while (*cmdline && *cmdline != ' ')
cmdline++; cmdline++;
} }
return WinMain(GetModuleHandle(NULL), NULL, cmdline, SW_NORMAL); return WinMain(GetModuleHandle(NULL), NULL, cmdline, SW_NORMAL);