Dmitry Timoshkov : wshom.ocx: Actually wait for process termination in IWshShell3::Run().
Alexandre Julliard
julliard at winehq.org
Mon Oct 7 17:02:15 CDT 2019
Module: wine
Branch: master
Commit: 57961e5e78ceb573303b7374639ee31d3794face
URL: https://source.winehq.org/git/wine.git/?a=commit;h=57961e5e78ceb573303b7374639ee31d3794face
Author: Dmitry Timoshkov <dmitry at baikal.ru>
Date: Mon Oct 7 12:59:40 2019 +0800
wshom.ocx: Actually wait for process termination in IWshShell3::Run().
Signed-off-by: Dmitry Timoshkov <dmitry at baikal.ru>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>
---
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);
}
More information about the wine-cvs
mailing list