Michał Ziętek : wscript: Implemented Arguments2_get_length.

Alexandre Julliard julliard at winehq.org
Thu Aug 25 13:00:15 CDT 2011


Module: wine
Branch: master
Commit: 4252bd8653424b3ad84e7651c1300cc9dbc19b8a
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=4252bd8653424b3ad84e7651c1300cc9dbc19b8a

Author: Michał Ziętek <smierc.w.wenecji at gmail.com>
Date:   Tue Aug 23 15:16:03 2011 +0200

wscript: Implemented Arguments2_get_length.

---

 programs/wscript/arguments.c  |    6 ++++--
 programs/wscript/tests/run.js |    1 +
 2 files changed, 5 insertions(+), 2 deletions(-)

diff --git a/programs/wscript/arguments.c b/programs/wscript/arguments.c
index b50ed94..7961948 100644
--- a/programs/wscript/arguments.c
+++ b/programs/wscript/arguments.c
@@ -118,8 +118,10 @@ static HRESULT WINAPI Arguments2_Count(IArguments2 *iface, LONG *out_Count)
 
 static HRESULT WINAPI Arguments2_get_length(IArguments2 *iface, LONG *out_Count)
 {
-    WINE_FIXME("(%p)\n", out_Count);
-    return E_NOTIMPL;
+    WINE_TRACE("(%p)\n", out_Count);
+
+    *out_Count = numOfArgs;
+    return S_OK;
 }
 
 static const IArguments2Vtbl Arguments2Vtbl = {
diff --git a/programs/wscript/tests/run.js b/programs/wscript/tests/run.js
index dde3caf..430dfb6 100644
--- a/programs/wscript/tests/run.js
+++ b/programs/wscript/tests/run.js
@@ -41,5 +41,6 @@ try {
     ok(false, "expected exception");
 }catch(e) {}
 ok(WScript.Arguments.Count() === 3, "WScript.Arguments.Count() = " + WScript.Arguments.Count());
+ok(WScript.Arguments.length === 3, "WScript.Arguments.length = " + WScript.Arguments.length);
 
 winetest.reportSuccess();




More information about the wine-cvs mailing list