From f5110613ee1d6988c0b111adcaad3c18172dcb52 Mon Sep 17 00:00:00 2001
From: Roman Dadkov <romand@etersoft.ru>
Date: Sat, 6 Oct 2012 20:21:02 +0400
Subject: [PATCH] ole32: Fix dwClsContext parameter of a CoCreateInstance call
 in DefaultHandler_Run.

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

diff --git a/dlls/ole32/defaulthandler.c b/dlls/ole32/defaulthandler.c
index 577d976..66a3118 100644
--- a/dlls/ole32/defaulthandler.c
+++ b/dlls/ole32/defaulthandler.c
@@ -1322,7 +1322,9 @@ static HRESULT WINAPI DefaultHandler_Run(
 
   release_delegates(This);
 
-  hr = CoCreateInstance(&This->clsid, NULL, CLSCTX_LOCAL_SERVER,
+  hr = CoCreateInstance(&This->clsid, NULL,
+                        CLSCTX_INPROC_SERVER|CLSCTX_INPROC_HANDLER|
+                        CLSCTX_LOCAL_SERVER|CLSCTX_REMOTE_SERVER,
                         &IID_IOleObject, (void **)&This->pOleDelegate);
   if (FAILED(hr))
     return hr;
-- 
1.7.10.5
