Jacek Caban : mshtml: Fixed DISPATCH_PROPERTYGET|DISPATCH_METHOD support in invoke_builtin_prop.

Alexandre Julliard julliard at winehq.org
Mon Aug 13 13:21:18 CDT 2012


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

Author: Jacek Caban <jacek at codeweavers.com>
Date:   Mon Aug 13 11:03:13 2012 +0200

mshtml: Fixed DISPATCH_PROPERTYGET|DISPATCH_METHOD support in invoke_builtin_prop.

---

 dlls/mshtml/dispex.c |   11 ++++++++---
 1 files changed, 8 insertions(+), 3 deletions(-)

diff --git a/dlls/mshtml/dispex.c b/dlls/mshtml/dispex.c
index b2f5b81..a3ac623 100644
--- a/dlls/mshtml/dispex.c
+++ b/dlls/mshtml/dispex.c
@@ -985,9 +985,14 @@ static HRESULT invoke_builtin_prop(DispatchEx *This, DISPID id, LCID lcid, WORD
                 return E_FAIL;
             }
 
-            hres = invoke_disp_value(This, V_DISPATCH(&v), lcid, flags, dp, res, ei, caller);
-
-            IDispatch_Release(V_DISPATCH(&v));
+            if(flags != (DISPATCH_PROPERTYGET|DISPATCH_METHOD)) {
+                hres = invoke_disp_value(This, V_DISPATCH(&v), lcid, flags, dp, res, ei, caller);
+                IDispatch_Release(V_DISPATCH(&v));
+            }else if(res) {
+                *res = v;
+            }else {
+                IDispatch_Release(V_DISPATCH(&v));
+            }
         }
     }
 




More information about the wine-cvs mailing list