Module: wine Branch: master Commit: 849fef0b82f1a9d933614d74191cbf8efda0e7c1 URL: https://source.winehq.org/git/wine.git/?a=commit;h=849fef0b82f1a9d933614d741...
Author: Jacek Caban jacek@codeweavers.com Date: Wed May 9 14:58:59 2018 +0200
urlmon: Support querying interfaces from aggregated handlers in BindProtocol.
Signed-off-by: Jacek Caban jacek@codeweavers.com Signed-off-by: Alexandre Julliard julliard@winehq.org
---
dlls/urlmon/bindprot.c | 5 +++++ 1 file changed, 5 insertions(+)
diff --git a/dlls/urlmon/bindprot.c b/dlls/urlmon/bindprot.c index 87ec23b..1e5ec14 100644 --- a/dlls/urlmon/bindprot.c +++ b/dlls/urlmon/bindprot.c @@ -309,6 +309,11 @@ static HRESULT WINAPI BindProtocol_QueryInterface(IInternetProtocolEx *iface, RE IWinInetHttpInfo_Release(http_info); } } + }else if(This->protocol_unk) { + HRESULT hres; + hres = IUnknown_QueryInterface(This->protocol_unk, riid, ppv); + TRACE("(%p) aggregated handler returned %08x for %s\n", This, hres, debugstr_guid(riid)); + return hres; }else { WARN("not supported interface %s\n", debugstr_guid(riid)); }