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
45a6619e
Commit
45a6619e
authored
May 30, 2012
by
Jacek Caban
Committed by
Alexandre Julliard
May 30, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
urlmon: Correctly handle BINDF_NO_UI in handle_http_error.
parent
586e8b0c
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
16 deletions
+12
-16
http.c
dlls/urlmon/http.c
+12
-16
No files found.
dlls/urlmon/http.c
View file @
45a6619e
...
...
@@ -119,6 +119,9 @@ static HRESULT handle_http_error(HttpProtocol *This, DWORD error)
IWindowForBindingUI
*
wfb_ui
;
IHttpSecurity
*
http_security
;
BOOL
security_problem
;
DWORD
dlg_flags
;
HWND
hwnd
;
DWORD
res
;
HRESULT
hres
;
switch
(
error
)
{
...
...
@@ -183,7 +186,6 @@ static HRESULT handle_http_error(HttpProtocol *This, DWORD error)
hres
=
IServiceProvider_QueryService
(
serv_prov
,
&
IID_IWindowForBindingUI
,
&
IID_IWindowForBindingUI
,
(
void
**
)
&
wfb_ui
);
if
(
SUCCEEDED
(
hres
))
{
HWND
hwnd
;
const
IID
*
iid_reason
;
if
(
security_problem
)
...
...
@@ -194,26 +196,20 @@ static HRESULT handle_http_error(HttpProtocol *This, DWORD error)
iid_reason
=
&
IID_IWindowForBindingUI
;
hres
=
IWindowForBindingUI_GetWindow
(
wfb_ui
,
iid_reason
,
&
hwnd
);
if
(
SUCCEEDED
(
hres
)
&&
hwnd
)
{
DWORD
res
;
res
=
InternetErrorDlg
(
hwnd
,
This
->
base
.
request
,
error
,
FLAGS_ERROR_UI_FLAGS_CHANGE_OPTIONS
|
FLAGS_ERROR_UI_FLAGS_GENERATE_DATA
,
NULL
);
if
(
res
==
ERROR_INTERNET_FORCE_RETRY
||
res
==
ERROR_SUCCESS
)
hres
=
RPC_E_RETRY
;
else
hres
=
E_FAIL
;
}
IWindowForBindingUI_Release
(
wfb_ui
);
if
(
FAILED
(
hres
))
hwnd
=
NULL
;
}
IServiceProvider_Release
(
serv_prov
);
if
(
hres
==
RPC_E_RETRY
)
return
hres
;
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
;
return
internet_error_to_hres
(
error
);
}
...
...
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