[PATCH] wshom.ocx: Actually wait for process termination in IWshShell3::Run().
Dmitry Timoshkov
dmitry at baikal.ru
Sun Oct 6 23:59:40 CDT 2019
Signed-off-by: Dmitry Timoshkov <dmitry at baikal.ru>
---
dlls/wshom.ocx/shell.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/dlls/wshom.ocx/shell.c b/dlls/wshom.ocx/shell.c
index 5d58ac74ed..d423856ce7 100644
--- a/dlls/wshom.ocx/shell.c
+++ b/dlls/wshom.ocx/shell.c
@@ -1297,6 +1297,7 @@ static HRESULT WINAPI WshShell3_Run(IWshShell3 *iface, BSTR cmd, VARIANT *style,
{
if (waitforprocess)
{
+ WaitForSingleObject(info.hProcess, INFINITE);
GetExitCodeProcess(info.hProcess, exit_code);
CloseHandle(info.hProcess);
}
--
2.20.1
More information about the wine-devel
mailing list