wscript: Implemented Arguments2_get_length.

This commit is contained in:
Michał Ziętek 2011-08-23 15:16:03 +02:00 committed by Alexandre Julliard
parent 5079fe9839
commit 4252bd8653
2 changed files with 5 additions and 2 deletions

View File

@ -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) static HRESULT WINAPI Arguments2_get_length(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 const IArguments2Vtbl Arguments2Vtbl = { static const IArguments2Vtbl Arguments2Vtbl = {

View File

@ -41,5 +41,6 @@ try {
ok(false, "expected exception"); ok(false, "expected exception");
}catch(e) {} }catch(e) {}
ok(WScript.Arguments.Count() === 3, "WScript.Arguments.Count() = " + WScript.Arguments.Count()); ok(WScript.Arguments.Count() === 3, "WScript.Arguments.Count() = " + WScript.Arguments.Count());
ok(WScript.Arguments.length === 3, "WScript.Arguments.length = " + WScript.Arguments.length);
winetest.reportSuccess(); winetest.reportSuccess();