From 57961e5e78ceb573303b7374639ee31d3794face Mon Sep 17 00:00:00 2001 From: Dmitry Timoshkov Date: Mon, 7 Oct 2019 12:59:40 +0800 Subject: [PATCH] wshom.ocx: Actually wait for process termination in IWshShell3::Run(). Signed-off-by: Dmitry Timoshkov Signed-off-by: Alexandre Julliard --- 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 5d58ac74ed9..d423856ce7a 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); }