mshtml/tests: Don't crash when Gecko is missing.

This commit is contained in:
Alexandre Julliard 2010-04-02 16:30:06 +02:00
parent 1f1d9e7b02
commit bc12cad570
1 changed files with 1 additions and 0 deletions

View File

@ -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)) {