mshtml: Updated test of QueryInterface.

This commit is contained in:
Andrei Derevyanko 2008-12-18 14:59:57 +03:00 committed by Alexandre Julliard
parent 6ea2e4bc21
commit 2afc8fcd5a
1 changed files with 5 additions and 0 deletions

View File

@ -3766,6 +3766,11 @@ static void test_QueryInterface(IUnknown *unk)
hres = IUnknown_QueryInterface(unk, &IID_UndocumentedScriptIface, (void**)&qi);
ok(hres == E_NOINTERFACE, "QueryInterface returned %08x, expected E_NOINTERFACE\n", hres);
ok(qi == NULL, "qi=%p, expected NULL\n", qi);
qi = (void*)0xdeadbeef;
hres = IUnknown_QueryInterface(unk, &IID_IMarshal, (void**)&qi);
ok(hres == E_NOINTERFACE, "QueryInterface returned %08x, expected E_NOINTERFACE\n", hres);
ok(qi == NULL, "qi=%p, expected NULL\n", qi);
}
static void init_test(enum load_state_t ls) {