Commit 6faea5a6 authored by Eric Pouech's avatar Eric Pouech Committed by Alexandre Julliard

cmd: Correctly parse program name when launching external processes.

parent d7bc2eff
......@@ -978,7 +978,12 @@ void WCMD_run_program (WCHAR *command, int called) {
static const WCHAR envPathExt[] = {'P','A','T','H','E','X','T','\0'};
static const WCHAR delims[] = {'/','\\',':','\0'};
WCMD_parse (command, quals, param1, param2); /* Quick way to get the filename */
/* Quick way to get the filename
* (but handle leading / as part of program name, not qualifier)
*/
for (len = 0; command[len] == '/'; len++) param1[len] = '/';
WCMD_parse (command + len, quals, param1 + len, param2);
if (!(*param1) && !(*param2))
return;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment