[PATCH] mshtml: fixed a crash due to missing typelib marshalling on 64bit

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

[PATCH] mshtml: fixed a crash due to missing typelib marshalling on 64bit

Marcus Meissner
Signed-off-by: Marcus Meissner <[hidden email]>
---
 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 7ec3f6001a..a03d0105a9 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");
--
2.15.0



Reply | Threaded
Open this post in threaded view
|

Re: [PATCH] mshtml: fixed a crash due to missing typelib marshalling on 64bit

Jacek Caban-3
Signed-off-by: Jacek Caban <[hidden email]>