From: Thiago Barbato Subject: [PATCH] wscript: Initial implementation of Host_Quit Message-Id: <20160627234702.27103-1-thiagocbbt@gmail.com> Date: Mon, 27 Jun 2016 20:47:02 -0300 Temporary implementation of Quit for preventing scripts to continue execution. Fixes https://bugs.winehq.org/show_bug.cgi?id=37977 Signed-off-by: Thiago Barbato --- programs/wscript/host.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/programs/wscript/host.c b/programs/wscript/host.c index 893d006..678ea85 100644 --- a/programs/wscript/host.c +++ b/programs/wscript/host.c @@ -224,8 +224,9 @@ static HRESULT WINAPI Host_put_Interactive(IHost *iface, VARIANT_BOOL v) static HRESULT WINAPI Host_Quit(IHost *iface, int ExitCode) { - WINE_FIXME("(%d)\n", ExitCode); - return E_NOTIMPL; + FIXME("doesn't properly close script engines\n"); + ExitProcess( ExitCode ); + return S_OK; } static HRESULT WINAPI Host_get_ScriptName(IHost *iface, BSTR *out_ScriptName) -- 2.9.0