mirror of
git://source.winehq.org/git/wine.git
synced 2024-10-14 18:37:17 +00:00
wcmd: Try executing the process even if the exe file doesn't exist.
It may be a builtin exe in which case the CreateProcess call will succeed.
This commit is contained in:
parent
d404fb5bf8
commit
5ac2238ad0
|
@ -594,11 +594,11 @@ char filetorun[MAX_PATH];
|
||||||
/* No batch file found, assume executable */
|
/* No batch file found, assume executable */
|
||||||
|
|
||||||
hinst = FindExecutable (param1, NULL, filetorun);
|
hinst = FindExecutable (param1, NULL, filetorun);
|
||||||
if ((int)hinst < 32) {
|
if ((int)hinst < 32)
|
||||||
WCMD_print_error ();
|
console = 0;
|
||||||
return;
|
else
|
||||||
}
|
console = SHGetFileInfo (filetorun, 0, &psfi, sizeof(psfi), SHGFI_EXETYPE);
|
||||||
console = SHGetFileInfo (filetorun, 0, &psfi, sizeof(psfi), SHGFI_EXETYPE);
|
|
||||||
ZeroMemory (&st, sizeof(STARTUPINFO));
|
ZeroMemory (&st, sizeof(STARTUPINFO));
|
||||||
st.cb = sizeof(STARTUPINFO);
|
st.cb = sizeof(STARTUPINFO);
|
||||||
init_msvcrt_io_block(&st);
|
init_msvcrt_io_block(&st);
|
||||||
|
|
Loading…
Reference in a new issue