kernel32: Fix processing of spaces in command line for builtin exes.
authorAlexandre Julliard <julliard@winehq.org>
Mon, 29 Mar 2010 17:37:35 +0000 (19:37 +0200)
committerAlexandre Julliard <julliard@winehq.org>
Mon, 29 Mar 2010 17:37:35 +0000 (19:37 +0200)
dlls/kernel32/process.c

index 0a404bcd0d3b7569f0548f4b25634c2ce2ac07e7..541c7943da6cd0573475e12e130f4e1ed1ddd840 100644 (file)
@@ -1967,8 +1967,8 @@ static LPWSTR get_file_name( LPCWSTR appname, LPWSTR cmdline, LPWSTR buffer,
             ret = cmdline;
             break;
         }
-        if (!(*pos++ = *p++)) break;
         if (!first_space) first_space = pos;
+        if (!(*pos++ = *p++)) break;
     }
 
     if (!ret)