[PATCH] wscript: Initial implementation of Host_Quit

Thiago Barbato thiagocbbt at gmail.com
Mon Jun 27 18:47:02 CDT 2016


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 <thiagocbbt at gmail.com>
---
 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




More information about the wine-patches mailing list