urlmon: Store display_uri in BindProtocol structure.

oldstable
Piotr Caban 2012-01-20 14:52:16 +01:00 committed by Alexandre Julliard
parent 09a49fd784
commit 6bc361f2fc
2 changed files with 4 additions and 5 deletions

View File

@ -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;

View File

@ -211,6 +211,7 @@ typedef struct {
DWORD buf_size;
LPWSTR mime;
IUri *uri;
BSTR display_uri;
ProtocolProxy *filter_proxy;
} BindProtocol;