Nikolay Sivov : scrrun: Fix IFolder::QueryInterface() to respond to IDispatch query.

Alexandre Julliard julliard at winehq.org
Fri Jan 3 11:23:15 CST 2014


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

Author: Nikolay Sivov <nsivov at codeweavers.com>
Date:   Fri Jan  3 16:34:24 2014 +0400

scrrun: Fix IFolder::QueryInterface() to respond to IDispatch query.

---

 dlls/scrrun/filesystem.c |    5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/dlls/scrrun/filesystem.c b/dlls/scrrun/filesystem.c
index 1d2beda..949173a 100644
--- a/dlls/scrrun/filesystem.c
+++ b/dlls/scrrun/filesystem.c
@@ -514,8 +514,9 @@ static HRESULT WINAPI folder_QueryInterface(IFolder *iface, REFIID riid, void **
 
     *obj = NULL;
 
-    if (IsEqualGUID( riid, &IID_IFolder ) ||
-        IsEqualGUID( riid, &IID_IUnknown))
+    if (IsEqualIID( riid, &IID_IFolder ) ||
+        IsEqualIID( riid, &IID_IDispatch ) ||
+        IsEqualIID( riid, &IID_IUnknown))
     {
         *obj = iface;
         IFolder_AddRef(iface);




More information about the wine-cvs mailing list