Module: wine Branch: refs/heads/master Commit: bde8aa58fb3572e8779ab1d293328e4c9c73cec5 URL: http://source.winehq.org/git/?p=wine.git;a=commit;h=bde8aa58fb3572e8779ab1d2...
Author: Jacek Caban jacek@codeweavers.com Date: Fri Apr 28 20:04:22 2006 +0200
mshtml: Added GetConnectionInterface implementation.
---
dlls/mshtml/conpoint.c | 12 ++++++++++-- 1 files changed, 10 insertions(+), 2 deletions(-)
diff --git a/dlls/mshtml/conpoint.c b/dlls/mshtml/conpoint.c index a2eaf57..0581cb4 100644 --- a/dlls/mshtml/conpoint.c +++ b/dlls/mshtml/conpoint.c @@ -40,6 +40,7 @@ struct ConnectionPoint { const IConnectionPointVtbl *lpConnectionPointVtbl;
HTMLDocument *doc; + IID iid; };
#define CONPOINT_THIS(iface) DEFINE_THIS(ConnectionPoint, ConnectionPoint, iface) @@ -83,8 +84,14 @@ static ULONG WINAPI ConnectionPoint_Rele static HRESULT WINAPI ConnectionPoint_GetConnectionInterface(IConnectionPoint *iface, IID *pIID) { ConnectionPoint *This = CONPOINT_THIS(iface); - FIXME("(%p)->(%p)\n", This, pIID); - return E_NOTIMPL; + + TRACE("(%p)->(%p)\n", This, pIID); + + if(!pIID) + return E_POINTER; + + memcpy(pIID, &This->iid, sizeof(IID)); + return S_OK; }
static HRESULT WINAPI ConnectionPoint_GetConnectionPointContainer(IConnectionPoint *iface, @@ -145,6 +152,7 @@ static void ConnectionPoint_Create(HTMLD
ret->lpConnectionPointVtbl = &ConnectionPointVtbl; ret->doc = doc; + memcpy(&ret->iid, riid, sizeof(IID));
*cp = ret; }