Commit 5079fe98 authored by Michał Ziętek's avatar Michał Ziętek Committed by Alexandre Julliard

wscript: Implemented Arguments2_Count.

parent 1c293750
...@@ -110,8 +110,10 @@ static HRESULT WINAPI Arguments2_Item(IArguments2 *iface, LONG index, BSTR *out_ ...@@ -110,8 +110,10 @@ static HRESULT WINAPI Arguments2_Item(IArguments2 *iface, LONG index, BSTR *out_
static HRESULT WINAPI Arguments2_Count(IArguments2 *iface, LONG *out_Count) static HRESULT WINAPI Arguments2_Count(IArguments2 *iface, LONG *out_Count)
{ {
WINE_FIXME("(%p)\n", out_Count); WINE_TRACE("(%p)\n", out_Count);
return E_NOTIMPL;
*out_Count = numOfArgs;
return S_OK;
} }
static HRESULT WINAPI Arguments2_get_length(IArguments2 *iface, LONG *out_Count) static HRESULT WINAPI Arguments2_get_length(IArguments2 *iface, LONG *out_Count)
......
...@@ -40,5 +40,6 @@ try { ...@@ -40,5 +40,6 @@ try {
WScript.Arguments.Item(3); WScript.Arguments.Item(3);
ok(false, "expected exception"); ok(false, "expected exception");
}catch(e) {} }catch(e) {}
ok(WScript.Arguments.Count() === 3, "WScript.Arguments.Count() = " + WScript.Arguments.Count());
winetest.reportSuccess(); winetest.reportSuccess();
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment