mirror of
https://github.com/reactos/wine.git
synced 2024-11-28 22:20:26 +00:00
urlmon: Store display_uri in BindProtocol structure.
This commit is contained in:
parent
09a49fd784
commit
6bc361f2fc
@ -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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user