ole32: Tell the advise holder what the data delegate is in DefaultHandle_DAdvise if we are already connected.

This commit is contained in:
Robert Shearman 2006-08-07 12:59:13 +01:00 committed by Alexandre Julliard
parent c860b8aec4
commit 6ba258ec1d
1 changed files with 4 additions and 0 deletions

View File

@ -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,