Commit 98fd1c56 authored by Robert Shearman's avatar Robert Shearman Committed by Alexandre Julliard

Return the correct error code from IConnectionPointContainer::FindConnectionPoint.

parent f4acfe9a
......@@ -1901,8 +1901,8 @@ static HRESULT WINAPI OLEFontImpl_FindConnectionPoint(
&IID_IConnectionPoint,
(LPVOID)ppCp);
} else {
FIXME("Tried to find connection point on %s\n", debugstr_guid(riid));
return E_NOINTERFACE;
FIXME("no connection point for %s\n", debugstr_guid(riid));
return CONNECT_E_NOCONNECTION;
}
}
......
......@@ -869,8 +869,8 @@ static HRESULT WINAPI OLEPictureImpl_FindConnectionPoint(
*ppCP = NULL;
if (IsEqualGUID(riid,&IID_IPropertyNotifySink))
return IConnectionPoint_QueryInterface(This->pCP,&IID_IConnectionPoint,(LPVOID)ppCP);
FIXME("tried to find connection point on %s?\n",debugstr_guid(riid));
return 0x80040200;
FIXME("no connection point for %s\n",debugstr_guid(riid));
return CONNECT_E_NOCONNECTION;
}
/************************************************************************
* IPersistStream
......
......@@ -102,7 +102,7 @@ static HRESULT WINAPI ConnectionPointContainer_FindConnectionPoint(IConnectionPo
}
WARN("Unsupported IID %s\n", debugstr_guid(riid));
return E_NOINTERFACE;
return CONNECT_E_NOCONNECTION;
}
#undef CONPTCONT_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