Commit 57961e5e authored by Dmitry Timoshkov's avatar Dmitry Timoshkov Committed by Alexandre Julliard

wshom.ocx: Actually wait for process termination in IWshShell3::Run().

parent 6c8cb0ab
......@@ -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);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment