Jacek Caban : mshtml: Added GetConnectionInterface implementation.
Alexandre Julliard
julliard at wine.codeweavers.com
Fri May 5 12:10:34 CDT 2006
Module: wine
Branch: refs/heads/master
Commit: bde8aa58fb3572e8779ab1d293328e4c9c73cec5
URL: http://source.winehq.org/git/?p=wine.git;a=commit;h=bde8aa58fb3572e8779ab1d293328e4c9c73cec5
Author: Jacek Caban <jacek at 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;
}
More information about the wine-cvs
mailing list