diff --git a/programs/wscript/arguments.c b/programs/wscript/arguments.c index b50ed94528c..7961948b6a5 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 dde3caf12fc..430dfb6aa1f 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();