wine/dlls/shdocvw dochost.c
Alexandre Julliard
julliard at wine.codeweavers.com
Mon Nov 28 14:04:22 CST 2005
ChangeSet ID: 21502
CVSROOT: /opt/cvs-commit
Module name: wine
Changes by: julliard at winehq.org 2005/11/28 14:04:22
Modified files:
dlls/shdocvw : dochost.c
Log message:
Jacek Caban <jacek at codeweavers.com>
Added GetOverrideKeyPath and GetOptionKeyPath implementation.
Patch: http://cvs.winehq.org/patch.py?id=21502
Old revision New revision Changes Path
1.3 1.4 +34 -4 wine/dlls/shdocvw/dochost.c
Index: wine/dlls/shdocvw/dochost.c
diff -u -p wine/dlls/shdocvw/dochost.c:1.3 wine/dlls/shdocvw/dochost.c:1.4
--- wine/dlls/shdocvw/dochost.c:1.3 28 Nov 2005 20: 4:22 -0000
+++ wine/dlls/shdocvw/dochost.c 28 Nov 2005 20: 4:22 -0000
@@ -193,8 +193,23 @@ static HRESULT WINAPI DocHostUIHandler_G
LPOLESTR *pchKey, DWORD dw)
{
WebBrowser *This = DOCHOSTUI_THIS(iface);
- FIXME("(%p)->(%p %ld)\n", This, pchKey, dw);
- return E_NOTIMPL;
+ IDocHostUIHandler *handler;
+ HRESULT hres;
+
+ TRACE("(%p)->(%p %ld)\n", This, pchKey, dw);
+
+ if(!This->client)
+ return S_OK;
+
+ hres = IOleClientSite_QueryInterface(This->client, &IID_IDocHostUIHandler,
+ (void**)&handler);
+ if(SUCCEEDED(hres)) {
+ hres = IDocHostUIHandler_GetOptionKeyPath(handler, pchKey, dw);
+ IDocHostUIHandler_Release(handler);
+ return hres;
+ }
+
+ return S_OK;
}
static HRESULT WINAPI DocHostUIHandler_GetDropTarget(IDocHostUIHandler2 *iface,
@@ -233,8 +248,23 @@ static HRESULT WINAPI DocHostUIHandler_G
LPOLESTR *pchKey, DWORD dw)
{
WebBrowser *This = DOCHOSTUI_THIS(iface);
- FIXME("(%p)->(%p %ld)\n", This, pchKey, dw);
- return E_NOTIMPL;
+ IDocHostUIHandler2 *handler;
+ HRESULT hres;
+
+ TRACE("(%p)->(%p %ld)\n", This, pchKey, dw);
+
+ if(!This->client)
+ return S_OK;
+
+ hres = IOleClientSite_QueryInterface(This->client, &IID_IDocHostUIHandler2,
+ (void**)&handler);
+ if(SUCCEEDED(hres)) {
+ hres = IDocHostUIHandler2_GetOverrideKeyPath(handler, pchKey, dw);
+ IDocHostUIHandler2_Release(handler);
+ return hres;
+ }
+
+ return S_OK;
}
#undef DOCHOSTUI_THIS
More information about the wine-cvs
mailing list