Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-winehq
Commits
31907e0c
Commit
31907e0c
authored
Jun 07, 2012
by
Jacek Caban
Committed by
Alexandre Julliard
Jun 07, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
urlmon: Improved ERROR_INTERNET_SEC_CERT_REV_FAILED error handling.
parent
99c10bd7
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
35 additions
and
24 deletions
+35
-24
http.c
dlls/urlmon/http.c
+35
-24
No files found.
dlls/urlmon/http.c
View file @
31907e0c
...
...
@@ -193,35 +193,46 @@ static HRESULT handle_http_error(HttpProtocol *This, DWORD error)
}
}
hres
=
IServiceProvider_QueryService
(
serv_prov
,
&
IID_IWindowForBindingUI
,
&
IID_IWindowForBindingUI
,
(
void
**
)
&
wfb_ui
);
if
(
SUCCEEDED
(
hres
))
{
const
IID
*
iid_reason
;
if
(
security_problem
)
iid_reason
=
&
IID_IHttpSecurity
;
else
if
(
error
==
ERROR_INTERNET_INCORRECT_PASSWORD
)
iid_reason
=
&
IID_IAuthenticate
;
else
iid_reason
=
&
IID_IWindowForBindingUI
;
switch
(
error
)
{
case
ERROR_INTERNET_SEC_CERT_REV_FAILED
:
if
(
hres
==
S_FALSE
)
{
hres
=
internet_error_to_hres
(
error
);
}
else
{
/* Silently ignore the error. We will get more detailed error from wininet anyway. */
set_security_flag
(
This
,
SECURITY_FLAG_IGNORE_REVOCATION
);
hres
=
RPC_E_RETRY
;
}
break
;
hres
=
IWindowForBindingUI_GetWindow
(
wfb_ui
,
iid_reason
,
&
hwnd
);
IWindowForBindingUI_Release
(
wfb_ui
);
if
(
FAILED
(
hres
))
hwnd
=
NULL
;
}
default:
hres
=
IServiceProvider_QueryService
(
serv_prov
,
&
IID_IWindowForBindingUI
,
&
IID_IWindowForBindingUI
,
(
void
**
)
&
wfb_ui
);
if
(
SUCCEEDED
(
hres
))
{
const
IID
*
iid_reason
;
if
(
security_problem
)
iid_reason
=
&
IID_IHttpSecurity
;
else
if
(
error
==
ERROR_INTERNET_INCORRECT_PASSWORD
)
iid_reason
=
&
IID_IAuthenticate
;
else
iid_reason
=
&
IID_IWindowForBindingUI
;
hres
=
IWindowForBindingUI_GetWindow
(
wfb_ui
,
iid_reason
,
&
hwnd
);
IWindowForBindingUI_Release
(
wfb_ui
);
if
(
FAILED
(
hres
))
hwnd
=
NULL
;
}
IServiceProvider_Release
(
serv_prov
);
dlg_flags
=
FLAGS_ERROR_UI_FLAGS_CHANGE_OPTIONS
|
FLAGS_ERROR_UI_FLAGS_GENERATE_DATA
;
if
(
This
->
base
.
bindf
&
BINDF_NO_UI
)
dlg_flags
|=
FLAGS_ERROR_UI_FLAGS_NO_UI
;
dlg_flags
=
FLAGS_ERROR_UI_FLAGS_CHANGE_OPTIONS
|
FLAGS_ERROR_UI_FLAGS_GENERATE_DATA
;
if
(
This
->
base
.
bindf
&
BINDF_NO_UI
)
dlg_flags
|=
FLAGS_ERROR_UI_FLAGS_NO_UI
;
res
=
InternetErrorDlg
(
hwnd
,
This
->
base
.
request
,
error
,
dlg_flags
,
NULL
);
if
(
res
==
ERROR_INTERNET_FORCE_RETRY
||
res
==
ERROR_SUCCESS
)
return
RPC_E_RETRY
;
res
=
InternetErrorDlg
(
hwnd
,
This
->
base
.
request
,
error
,
dlg_flags
,
NULL
);
hres
=
res
==
ERROR_INTERNET_FORCE_RETRY
||
res
==
ERROR_SUCCESS
?
RPC_E_RETRY
:
internet_error_to_hres
(
error
);
}
return
internet_error_to_hres
(
error
);
IServiceProvider_Release
(
serv_prov
);
return
hres
;
}
static
ULONG
send_http_request
(
HttpProtocol
*
This
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment