Jacek Caban : mshtml: Fixed crash in tests if Gecko is not available.

Alexandre Julliard julliard at winehq.org
Thu Mar 27 07:21:44 CDT 2008


Module: wine
Branch: master
Commit: 4a46a0193abe70a1d46d3e0171f0e30c9d0be84f
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=4a46a0193abe70a1d46d3e0171f0e30c9d0be84f

Author: Jacek Caban <jacek at codeweavers.com>
Date:   Wed Mar 26 15:24:50 2008 +0100

mshtml: Fixed crash in tests if Gecko is not available.

---

 dlls/mshtml/tests/script.c |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)

diff --git a/dlls/mshtml/tests/script.c b/dlls/mshtml/tests/script.c
index 8b15d92..ac604cc 100644
--- a/dlls/mshtml/tests/script.c
+++ b/dlls/mshtml/tests/script.c
@@ -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);




More information about the wine-cvs mailing list