Commit 6888ea39 authored by Jacek Caban's avatar Jacek Caban Committed by Alexandre Julliard

jscript: Fixed NULL IDispatch comparistion.

parent dcaf0669
......@@ -261,8 +261,8 @@ static HRESULT disp_cmp(IDispatch *disp1, IDispatch *disp2, BOOL *ret)
return S_OK;
}
if(!disp1) {
*ret = !disp2;
if(!disp1 || !disp2) {
*ret = FALSE;
return S_OK;
}
......
......@@ -943,6 +943,8 @@ ok(getVT(true && nullDisp) === "VT_DISPATCH",
"getVT(0 && nullDisp) = " + getVT(true && nullDisp));
ok(!nullDisp === true, "!nullDisp = " + !nullDisp);
ok(String(nullDisp) === "null", "String(nullDisp) = " + String(nullDisp));
ok(nullDisp != new Object(), "nullDisp == new Object()");
ok(new Object() != nullDisp, "new Object() == nullDisp");
function do_test() {}
function nosemicolon() {} nosemicolon();
......
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