mshtml/tests: Don't crash when Gecko is missing.
This commit is contained in:
parent
1f1d9e7b02
commit
bc12cad570
|
@ -1056,6 +1056,7 @@ static IHTMLDocument2 *create_document(void)
|
|||
hres = CoCreateInstance(&CLSID_HTMLDocument, NULL, CLSCTX_INPROC_SERVER|CLSCTX_INPROC_HANDLER,
|
||||
&IID_IHTMLDocument2, (void**)&doc);
|
||||
ok(hres == S_OK, "CoCreateInstance failed: %08x\n", hres);
|
||||
if (hres != S_OK) return NULL;
|
||||
|
||||
hres = IHTMLDocument2_QueryInterface(doc, &IID_IHTMLDocument5, (void**)&doc5);
|
||||
if(FAILED(hres)) {
|
||||
|
|
Loading…
Reference in New Issue