Return the correct error code from IConnectionPointContainer::FindConnectionPoint.

This commit is contained in:
Robert Shearman 2006-02-10 14:51:30 +01:00 committed by Alexandre Julliard
parent f4acfe9a53
commit 98fd1c5678
3 changed files with 5 additions and 5 deletions

View File

@ -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;
}
}

View File

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

View File

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