From 66e21645cab9f0bc7ad3d3c849f9a95174335288 Mon Sep 17 00:00:00 2001
From: Roman Dadkov <romand@etersoft.ru>
Date: Thu, 20 Dec 2012 15:32:19 +0400
Subject: [PATCH] ole32: Add IID_IDispatch in
 DefaultHandler_NDIUnknown_QueryInterface. (eterbug #7371)

---
 dlls/ole32/defaulthandler.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/dlls/ole32/defaulthandler.c b/dlls/ole32/defaulthandler.c
index 437ff8d..471d934 100644
--- a/dlls/ole32/defaulthandler.c
+++ b/dlls/ole32/defaulthandler.c
@@ -217,7 +217,8 @@ static HRESULT WINAPI DefaultHandler_NDIUnknown_QueryInterface(
   else if (IsEqualIID(&IID_IRunnableObject, riid))
     *ppvObject = &This->IRunnableObject_iface;
   else if (IsEqualIID(&IID_IPersist, riid) ||
-           IsEqualIID(&IID_IPersistStorage, riid))
+           IsEqualIID(&IID_IPersistStorage, riid) ||
+           IsEqualIID(&IID_IDispatch, riid))
     *ppvObject = &This->IPersistStorage_iface;
   else if (IsEqualIID(&IID_IViewObject, riid) ||
            IsEqualIID(&IID_IViewObject2, riid) ||
-- 
1.7.12.4
