mirror of
https://github.com/reactos/wine.git
synced 2024-11-29 14:40:56 +00:00
mshtml: Fixed builtin getter call with arguments.
This commit is contained in:
parent
08254df316
commit
8c0c09e4c7
@ -1216,7 +1216,7 @@ static HRESULT invoke_builtin_prop(DispatchEx *This, DISPID id, LCID lcid, WORD
|
||||
if(FAILED(hres))
|
||||
return hres;
|
||||
|
||||
if(flags != (DISPATCH_PROPERTYGET|DISPATCH_METHOD)) {
|
||||
if(flags != (DISPATCH_PROPERTYGET|DISPATCH_METHOD) || dp->cArgs) {
|
||||
if(V_VT(&v) != VT_DISPATCH) {
|
||||
FIXME("Not a function %s\n", debugstr_variant(&v));
|
||||
VariantClear(&v);
|
||||
@ -1228,7 +1228,7 @@ static HRESULT invoke_builtin_prop(DispatchEx *This, DISPID id, LCID lcid, WORD
|
||||
}else if(res) {
|
||||
*res = v;
|
||||
}else {
|
||||
IDispatch_Release(V_DISPATCH(&v));
|
||||
VariantClear(&v);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -137,6 +137,8 @@ function test_getter_call() {
|
||||
e.onmousedown = function(x) { this.onmousedown_called = x; };
|
||||
e.onmousedown("test");
|
||||
ok(e.onmousedown_called === "test", "e.onmousedown_called = " + e.onmousedown_called);
|
||||
|
||||
ok(document.all("divid").tagName === "DIV", "document.all('divid').tagName = " + document.all("divid").tagName);
|
||||
}
|
||||
|
||||
function test_arg_conv() {
|
||||
|
Loading…
Reference in New Issue
Block a user