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) ...@@ -342,6 +342,7 @@ static ULONG WINAPI BindProtocol_Release(IInternetProtocolEx *iface)
IInternetProtocol_Release(&This->filter_proxy->IInternetProtocol_iface); IInternetProtocol_Release(&This->filter_proxy->IInternetProtocol_iface);
if(This->uri) if(This->uri)
IUri_Release(This->uri); IUri_Release(This->uri);
SysFreeString(This->display_uri);
set_binding_sink(This, NULL, NULL); set_binding_sink(This, NULL, NULL);
...@@ -546,15 +547,12 @@ static HRESULT WINAPI BindProtocol_StartEx(IInternetProtocolEx *iface, IUri *pUr ...@@ -546,15 +547,12 @@ static HRESULT WINAPI BindProtocol_StartEx(IInternetProtocolEx *iface, IUri *pUr
&This->IInternetBindInfo_iface, 0, NULL); &This->IInternetBindInfo_iface, 0, NULL);
IInternetProtocolEx_Release(protocolex); IInternetProtocolEx_Release(protocolex);
}else { }else {
BSTR display_uri; hres = IUri_GetDisplayUri(pUri, &This->display_uri);
hres = IUri_GetDisplayUri(pUri, &display_uri);
if(FAILED(hres)) if(FAILED(hres))
return 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); &This->IInternetBindInfo_iface, 0, 0);
SysFreeString(display_uri);
} }
return hres; return hres;
......
...@@ -211,6 +211,7 @@ typedef struct { ...@@ -211,6 +211,7 @@ typedef struct {
DWORD buf_size; DWORD buf_size;
LPWSTR mime; LPWSTR mime;
IUri *uri; IUri *uri;
BSTR display_uri;
ProtocolProxy *filter_proxy; ProtocolProxy *filter_proxy;
} BindProtocol; } 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