Marcus Meissner : mshtml: Fixed a crash due to missing typelib marshalling on 64bit.

Alexandre Julliard julliard at winehq.org
Wed Nov 15 16:46:00 CST 2017


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

Author: Marcus Meissner <meissner at suse.de>
Date:   Tue Nov 14 15:50:02 2017 +0100

mshtml: Fixed a crash due to missing typelib marshalling on 64bit.

Signed-off-by: Marcus Meissner <meissner at suse.de>
Signed-off-by: Jacek Caban <jacek at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>

---

 dlls/mshtml/tests/htmldoc.c | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/dlls/mshtml/tests/htmldoc.c b/dlls/mshtml/tests/htmldoc.c
index 7ec3f60..a03d010 100644
--- a/dlls/mshtml/tests/htmldoc.c
+++ b/dlls/mshtml/tests/htmldoc.c
@@ -6301,6 +6301,10 @@ static void test_open_window(IHTMLDocument2 *doc, BOOL do_block)
     CHECK_CALLED(EvaluateNewWindow);
 
     ok(hres == S_OK, "open failed: %08x\n", hres);
+    if (hres != S_OK) {
+        IHTMLWindow2_Release(window);
+        return;
+    }
 
     if(do_block) {
         ok(!new_window, "new_window != NULL\n");




More information about the wine-cvs mailing list