mshtml/tests: skip tests if gecko is not available
Austin English
austinenglish at gmail.com
Fri Feb 6 20:42:52 CST 2009
--
-Austin
-------------- next part --------------
diff --git a/dlls/mshtml/tests/dom.c b/dlls/mshtml/tests/dom.c
index ae24bcf..c1c9fa8 100644
--- a/dlls/mshtml/tests/dom.c
+++ b/dlls/mshtml/tests/dom.c
@@ -4198,10 +4198,9 @@ static void run_domtest(const char *str, domtest_t test)
DispatchMessage(&msg);
}
- hres = IHTMLDocument2_get_body(doc, &body);
- ok(hres == S_OK, "get_body failed: %08x\n", hres);
-
if(body) {
+ hres = IHTMLDocument2_get_body(doc, &body);
+ ok(hres == S_OK, "get_body failed: %08x\n", hres);
IHTMLElement_Release(body);
test(doc);
}else {
More information about the wine-patches
mailing list