Commit fe401520 authored by Robert Shearman's avatar Robert Shearman Committed by Alexandre Julliard

Implement OLE object notifications, making sure to cope with the case

of the advise holder not being created because no notifications are needed.
parent 40ffc286
......@@ -1339,13 +1339,23 @@ static void WINAPI DefaultHandler_IAdviseSink_OnRename(
IAdviseSink *iface,
IMoniker *pmk)
{
FIXME(": stub\n");
DefaultHandler *This = impl_from_IAdviseSink(iface);
TRACE("(%p)\n", pmk);
if (This->oleAdviseHolder)
IOleAdviseHolder_SendOnRename(This->oleAdviseHolder, pmk);
}
static void WINAPI DefaultHandler_IAdviseSink_OnSave(
IAdviseSink *iface)
{
FIXME(": stub\n");
DefaultHandler *This = impl_from_IAdviseSink(iface);
TRACE("()\n");
if (This->oleAdviseHolder)
IOleAdviseHolder_SendOnSave(This->oleAdviseHolder);
}
static void WINAPI DefaultHandler_IAdviseSink_OnClose(
......@@ -1355,7 +1365,8 @@ static void WINAPI DefaultHandler_IAdviseSink_OnClose(
TRACE("()\n");
IOleAdviseHolder_SendOnClose(This->oleAdviseHolder);
if (This->oleAdviseHolder)
IOleAdviseHolder_SendOnClose(This->oleAdviseHolder);
DefaultHandler_Stop(This);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment