Nikolay Sivov nsivov@codeweavers.com wrote:
+char* CDECL _get_narrow_winmain_command_line(void) +{
- static char *narrow_command_line;
- char *s;
- if (narrow_command_line)
return narrow_command_line;
- s = GetCommandLineA();
- if (*s == '"')
- {
s++;
while (*s)
if (*s++ == '"')
break;
- }
- else
- {
while (*s && *s != ' ' && *s != '\t')
s++;
- }
- while (*s == ' ' || *s == '\t')
s++;
- return narrow_command_line = s;
+}
Where did you get an idea of sucn an implementation?