urlmon: Query bind info object for BINDSTRING_ROOTDOC_URL.
This commit is contained in:
parent
9c642455f0
commit
b61c63af56
|
@ -282,7 +282,7 @@ static HRESULT HttpProtocol_open_request(Protocol *prot, IUri *uri, DWORD reques
|
||||||
HINTERNET internet_session, IInternetBindInfo *bind_info)
|
HINTERNET internet_session, IInternetBindInfo *bind_info)
|
||||||
{
|
{
|
||||||
HttpProtocol *This = impl_from_Protocol(prot);
|
HttpProtocol *This = impl_from_Protocol(prot);
|
||||||
LPWSTR addl_header = NULL, post_cookie = NULL;
|
WCHAR *addl_header = NULL, *post_cookie = NULL, *rootdoc_url = NULL;
|
||||||
IServiceProvider *service_provider = NULL;
|
IServiceProvider *service_provider = NULL;
|
||||||
IHttpNegotiate2 *http_negotiate2 = NULL;
|
IHttpNegotiate2 *http_negotiate2 = NULL;
|
||||||
BSTR url, host, user, pass, path;
|
BSTR url, host, user, pass, path;
|
||||||
|
@ -326,6 +326,13 @@ static HRESULT HttpProtocol_open_request(Protocol *prot, IUri *uri, DWORD reques
|
||||||
return INET_E_CANNOT_CONNECT;
|
return INET_E_CANNOT_CONNECT;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
num = 0;
|
||||||
|
hres = IInternetBindInfo_GetBindString(bind_info, BINDSTRING_ROOTDOC_URL, &rootdoc_url, 1, &num);
|
||||||
|
if(hres == S_OK && num) {
|
||||||
|
FIXME("Use root doc URL %s\n", debugstr_w(rootdoc_url));
|
||||||
|
CoTaskMemFree(rootdoc_url);
|
||||||
|
}
|
||||||
|
|
||||||
num = sizeof(accept_mimes)/sizeof(accept_mimes[0])-1;
|
num = sizeof(accept_mimes)/sizeof(accept_mimes[0])-1;
|
||||||
hres = IInternetBindInfo_GetBindString(bind_info, BINDSTRING_ACCEPT_MIMES, accept_mimes, num, &num);
|
hres = IInternetBindInfo_GetBindString(bind_info, BINDSTRING_ACCEPT_MIMES, accept_mimes, num, &num);
|
||||||
if(hres == INET_E_USE_DEFAULT_SETTING) {
|
if(hres == INET_E_USE_DEFAULT_SETTING) {
|
||||||
|
|
Loading…
Reference in New Issue