Commit 6bc361f2 authored by Piotr Caban's avatar Piotr Caban Committed by Alexandre Julliard

urlmon: Store display_uri in BindProtocol structure.

parent 09a49fd7
......@@ -342,6 +342,7 @@ static ULONG WINAPI BindProtocol_Release(IInternetProtocolEx *iface)
IInternetProtocol_Release(&This->filter_proxy->IInternetProtocol_iface);
if(This->uri)
IUri_Release(This->uri);
SysFreeString(This->display_uri);
set_binding_sink(This, NULL, NULL);
......@@ -546,15 +547,12 @@ static HRESULT WINAPI BindProtocol_StartEx(IInternetProtocolEx *iface, IUri *pUr
&This->IInternetBindInfo_iface, 0, NULL);
IInternetProtocolEx_Release(protocolex);
}else {
BSTR display_uri;
hres = IUri_GetDisplayUri(pUri, &display_uri);
hres = IUri_GetDisplayUri(pUri, &This->display_uri);
if(FAILED(hres))
return hres;
hres = IInternetProtocol_Start(protocol, display_uri, &This->IInternetProtocolSink_iface,
hres = IInternetProtocol_Start(protocol, This->display_uri, &This->IInternetProtocolSink_iface,
&This->IInternetBindInfo_iface, 0, 0);
SysFreeString(display_uri);
}
return hres;
......
......@@ -211,6 +211,7 @@ typedef struct {
DWORD buf_size;
LPWSTR mime;
IUri *uri;
BSTR display_uri;
ProtocolProxy *filter_proxy;
} BindProtocol;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment