From 6ba258ec1d0c9cded81ca83c88e25428a02ce0f9 Mon Sep 17 00:00:00 2001 From: Robert Shearman Date: Mon, 7 Aug 2006 12:59:13 +0100 Subject: [PATCH] ole32: Tell the advise holder what the data delegate is in DefaultHandle_DAdvise if we are already connected. --- dlls/ole32/defaulthandler.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/dlls/ole32/defaulthandler.c b/dlls/ole32/defaulthandler.c index fefd7ad0ee5..50584684f19 100644 --- a/dlls/ole32/defaulthandler.c +++ b/dlls/ole32/defaulthandler.c @@ -1125,7 +1125,11 @@ static HRESULT WINAPI DefaultHandler_DAdvise( /* Make sure we have a data advise holder before we start. */ if (!This->dataAdviseHolder) + { hres = CreateDataAdviseHolder(&This->dataAdviseHolder); + if (SUCCEEDED(hres) && This->pDataDelegate) + DataAdviseHolder_OnConnect(This->dataAdviseHolder, This->pDataDelegate); + } if (SUCCEEDED(hres)) hres = IDataAdviseHolder_Advise(This->dataAdviseHolder,