Piotr Caban : vbscript: Silence IDispatchEx queries on RegExp objects.

Alexandre Julliard julliard at winehq.org
Tue Feb 19 13:33:04 CST 2013


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

Author: Piotr Caban <piotr at codeweavers.com>
Date:   Tue Feb 19 12:41:45 2013 +0100

vbscript: Silence IDispatchEx queries on RegExp objects.

---

 dlls/vbscript/vbregexp.c |   16 ++++++++++++++++
 1 files changed, 16 insertions(+), 0 deletions(-)

diff --git a/dlls/vbscript/vbregexp.c b/dlls/vbscript/vbregexp.c
index 39c5a23..7e2a1cf 100644
--- a/dlls/vbscript/vbregexp.c
+++ b/dlls/vbscript/vbregexp.c
@@ -139,6 +139,10 @@ static HRESULT WINAPI SubMatches_QueryInterface(
     }else if(IsEqualGUID(riid, &IID_ISubMatches)) {
         TRACE("(%p)->(IID_ISubMatches %p)\n", This, ppv);
         *ppv = &This->ISubMatches_iface;
+    }else if(IsEqualGUID(riid, &IID_IDispatchEx)) {
+        TRACE("(%p)->(IID_IDispatchEx %p)\n", This, ppv);
+        *ppv = NULL;
+        return E_NOINTERFACE;
     }else {
         FIXME("(%p)->(%s %p)\n", This, debugstr_guid(riid), ppv);
         *ppv = NULL;
@@ -339,6 +343,10 @@ static HRESULT WINAPI Match2_QueryInterface(
     }else if(IsEqualGUID(riid, &IID_IMatch2)) {
         TRACE("(%p)->(IID_IMatch2 %p)\n", This, ppv);
         *ppv = &This->IMatch2_iface;
+    }else if(IsEqualGUID(riid, &IID_IDispatchEx)) {
+        TRACE("(%p)->(IID_IDispatchEx %p)\n", This, ppv);
+        *ppv = NULL;
+        return E_NOINTERFACE;
     }else {
         FIXME("(%p)->(%s %p)\n", This, debugstr_guid(riid), ppv);
         *ppv = NULL;
@@ -539,6 +547,10 @@ static HRESULT WINAPI MatchCollection2_QueryInterface(
     }else if(IsEqualGUID(riid, &IID_IMatchCollection2)) {
         TRACE("(%p)->(IID_IMatchCollection2 %p)\n", This, ppv);
         *ppv = &This->IMatchCollection2_iface;
+    }else if(IsEqualGUID(riid, &IID_IDispatchEx)) {
+        TRACE("(%p)->(IID_IDispatchEx %p)\n", This, ppv);
+        *ppv = NULL;
+        return E_NOINTERFACE;
     }else {
         FIXME("(%p)->(%s %p)\n", This, debugstr_guid(riid), ppv);
         *ppv = NULL;
@@ -738,6 +750,10 @@ static HRESULT WINAPI RegExp2_QueryInterface(IRegExp2 *iface, REFIID riid, void
     }else if(IsEqualGUID(riid, &IID_IRegExp)) {
         TRACE("(%p)->(IID_IRegExp %p)\n", This, ppv);
         *ppv = &This->IRegExp_iface;
+    }else if(IsEqualGUID(riid, &IID_IDispatchEx)) {
+        TRACE("(%p)->(IID_IDispatchEx %p)\n", This, ppv);
+        *ppv = NULL;
+        return E_NOINTERFACE;
     }else {
         FIXME("(%p)->(%s %p)\n", This, debugstr_guid(riid), ppv);
         *ppv = NULL;




More information about the wine-cvs mailing list