mshtml: Fixed crash in tests if Gecko is not available.
authorJacek Caban <jacek@codeweavers.com>
Wed, 26 Mar 2008 14:24:50 +0000 (15:24 +0100)
committerAlexandre Julliard <julliard@winehq.org>
Wed, 26 Mar 2008 22:38:36 +0000 (23:38 +0100)
dlls/mshtml/tests/script.c

index 8b15d92faff66c9932ba90821a679cb5785c5e02..ac604cce06da5a5e97d527aa9c412e0efb1a690f 100644 (file)
@@ -432,7 +432,10 @@ static void test_simple_script(void)
     IHTMLDocument2 *doc;
 
     SET_EXPECT(CreateInstance);
+
     doc = create_and_load_doc(simple_script_str);
+    if(!doc) return;
+
     CHECK_CALLED(CreateInstance);
 
     IHTMLDocument2_Release(doc);