start: Fall back to ShellExecute for unknown binaries in /unix mode.

This commit is contained in:
Alexandre Julliard 2008-05-29 12:12:12 +02:00
parent 29437dde3a
commit f8282d969a
1 changed files with 5 additions and 2 deletions

View File

@ -311,11 +311,14 @@ int wmain (int argc, WCHAR *argv[])
fatal_string_error(STRING_EXECFAIL, GetLastError());
}
sei.hProcess = process_information.hProcess;
goto done;
}
}
else if (!ShellExecuteExW(&sei))
fatal_string_error(STRING_EXECFAIL, GetLastError());
if (!ShellExecuteExW(&sei))
fatal_string_error(STRING_EXECFAIL, GetLastError());
done:
HeapFree( GetProcessHeap(), 0, args );
HeapFree( GetProcessHeap(), 0, dos_filename );
HeapFree( GetProcessHeap(), 0, parent_directory );