Michał Ziętek : wscript: Implemented Host_put_Interactive.
Alexandre Julliard
julliard at winehq.org
Thu Aug 25 13:00:15 CDT 2011
Module: wine
Branch: master
Commit: 154578d75cad1a7948ffda54c513850f189704cd
URL: http://source.winehq.org/git/wine.git/?a=commit;h=154578d75cad1a7948ffda54c513850f189704cd
Author: Michał Ziętek <smierc.w.wenecji at gmail.com>
Date: Tue Aug 23 15:16:15 2011 +0200
wscript: Implemented Host_put_Interactive.
---
programs/wscript/host.c | 6 ++++--
programs/wscript/tests/run.js | 4 ++++
2 files changed, 8 insertions(+), 2 deletions(-)
diff --git a/programs/wscript/host.c b/programs/wscript/host.c
index 0ce7e58..82209ea 100644
--- a/programs/wscript/host.c
+++ b/programs/wscript/host.c
@@ -154,8 +154,10 @@ static HRESULT WINAPI Host_get_Interactive(IHost *iface, VARIANT_BOOL *out_Inter
static HRESULT WINAPI Host_put_Interactive(IHost *iface, VARIANT_BOOL v)
{
- WINE_FIXME("(%x)\n", v);
- return E_NOTIMPL;
+ WINE_TRACE("(%x)\n", v);
+
+ wshInteractive = v;
+ return S_OK;
}
static HRESULT WINAPI Host_Quit(IHost *iface, int ExitCode)
diff --git a/programs/wscript/tests/run.js b/programs/wscript/tests/run.js
index 6773df5..d487166 100644
--- a/programs/wscript/tests/run.js
+++ b/programs/wscript/tests/run.js
@@ -43,5 +43,9 @@ try {
ok(WScript.Arguments.Count() === 3, "WScript.Arguments.Count() = " + WScript.Arguments.Count());
ok(WScript.Arguments.length === 3, "WScript.Arguments.length = " + WScript.Arguments.length);
ok(WScript.Interactive === true, "WScript.Interactive = " + WScript.Interactive);
+WScript.Interactive = false;
+ok(WScript.Interactive === false, "WScript.Interactive = " + WScript.Interactive);
+WScript.Interactive = true;
+ok(WScript.Interactive === true, "WScript.Interactive = " + WScript.Interactive);
winetest.reportSuccess();
More information about the wine-cvs
mailing list