[PATCH] Correct test for non-existing interfaces
Alistair Leslie-Hughes
leslie_alistair at hotmail.com
Tue Nov 11 16:21:51 CST 2008
---
dlls/shdocvw/tests/webbrowser.c | 17 +++++++++++------
1 files changed, 11 insertions(+), 6 deletions(-)
diff --git a/dlls/shdocvw/tests/webbrowser.c b/dlls/shdocvw/tests/webbrowser.c
index a203ae1..845fe19 100644
--- a/dlls/shdocvw/tests/webbrowser.c
+++ b/dlls/shdocvw/tests/webbrowser.c
@@ -1983,31 +1983,36 @@ static void test_QueryInterface(IUnknown *unk)
IOleInPlaceSite *inplace = (void*)0xdeadbeef;
IOleCache *cache = (void*)0xdeadbeef;
IObjectWithSite *site = (void*)0xdeadbeef;
+ IViewObjectEx *objectEx = (void*)0xdeadbeef;
HRESULT hres;
hres = IUnknown_QueryInterface(unk, &IID_IQuickActivate, (void**)&qa);
ok(hres == E_NOINTERFACE, "QueryInterface returned %08x, expected E_NOINTERFACE\n", hres);
- ok(qa == NULL, "qa=%p, ezpected NULL\n", qa);
+ ok(qa == NULL, "qa=%p, expected NULL\n", qa);
hres = IUnknown_QueryInterface(unk, &IID_IRunnableObject, (void**)&runnable);
ok(hres == E_NOINTERFACE, "QueryInterface returned %08x, expected E_NOINTERFACE\n", hres);
- ok(runnable == NULL, "runnable=%p, ezpected NULL\n", runnable);
+ ok(runnable == NULL, "runnable=%p, expected NULL\n", runnable);
hres = IUnknown_QueryInterface(unk, &IID_IPerPropertyBrowsing, (void**)&propbrowse);
ok(hres == E_NOINTERFACE, "QueryInterface returned %08x, expected E_NOINTERFACE\n", hres);
- ok(propbrowse == NULL, "propbrowse=%p, ezpected NULL\n", runnable);
+ ok(propbrowse == NULL, "propbrowse=%p, expected NULL\n", propbrowse);
hres = IUnknown_QueryInterface(unk, &IID_IOleCache, (void**)&cache);
ok(hres == E_NOINTERFACE, "QueryInterface returned %08x, expected E_NOINTERFACE\n", hres);
- ok(cache == NULL, "cache=%p, ezpected NULL\n", runnable);
+ ok(cache == NULL, "cache=%p, expected NULL\n", cache);
hres = IUnknown_QueryInterface(unk, &IID_IOleInPlaceSite, (void**)&inplace);
ok(hres == E_NOINTERFACE, "QueryInterface returned %08x, expected E_NOINTERFACE\n", hres);
- ok(inplace == NULL, "inplace=%p, ezpected NULL\n", runnable);
+ ok(inplace == NULL, "inplace=%p, expected NULL\n", inplace);
hres = IUnknown_QueryInterface(unk, &IID_IObjectWithSite, (void**)&site);
ok(hres == E_NOINTERFACE, "QueryInterface returned %08x, expected E_NOINTERFACE\n", hres);
- ok(site == NULL, "inplace=%p, ezpected NULL\n", runnable);
+ ok(site == NULL, "site=%p, expected NULL\n", site);
+
+ hres = IUnknown_QueryInterface(unk, &IID_IViewObjectEx, (void**)&objectEx);
+ ok(hres == E_NOINTERFACE, "QueryInterface returned %08x, expected E_NOINTERFACE\n", hres);
+ ok(objectEx == NULL, "objectEx=%p, expected NULL\n", objectEx);
}
static void test_WebBrowser(void)
--
1.5.4.3
--------------080806040001000400090501--
More information about the wine-patches
mailing list