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
74f596c5
Commit
74f596c5
authored
Jun 08, 2012
by
Jacek Caban
Committed by
Alexandre Julliard
Jun 08, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wininet: Read status code directly from request object in InternetErrorDlg.
parent
ebff6036
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
28 deletions
+2
-28
dialogs.c
dlls/wininet/dialogs.c
+2
-28
No files found.
dlls/wininet/dialogs.c
View file @
74f596c5
...
@@ -477,28 +477,6 @@ static INT_PTR WINAPI WININET_InvalidCertificateDialog(
...
@@ -477,28 +477,6 @@ static INT_PTR WINAPI WININET_InvalidCertificateDialog(
}
}
/***********************************************************************
/***********************************************************************
* WININET_GetConnectionStatus
*/
static
INT
WININET_GetConnectionStatus
(
HINTERNET
hRequest
)
{
WCHAR
szStatus
[
0x20
];
DWORD
sz
,
index
,
dwStatus
;
TRACE
(
"%p
\n
"
,
hRequest
);
sz
=
sizeof
szStatus
;
index
=
0
;
if
(
!
HttpQueryInfoW
(
hRequest
,
HTTP_QUERY_STATUS_CODE
,
szStatus
,
&
sz
,
&
index
))
return
-
1
;
dwStatus
=
atoiW
(
szStatus
);
TRACE
(
"request %p status = %d
\n
"
,
hRequest
,
dwStatus
);
return
dwStatus
;
}
/***********************************************************************
* InternetErrorDlg
* InternetErrorDlg
*/
*/
DWORD
WINAPI
InternetErrorDlg
(
HWND
hWnd
,
HINTERNET
hRequest
,
DWORD
WINAPI
InternetErrorDlg
(
HWND
hWnd
,
HINTERNET
hRequest
,
...
@@ -531,16 +509,12 @@ DWORD WINAPI InternetErrorDlg(HWND hWnd, HINTERNET hRequest,
...
@@ -531,16 +509,12 @@ DWORD WINAPI InternetErrorDlg(HWND hWnd, HINTERNET hRequest,
{
{
case
ERROR_SUCCESS
:
case
ERROR_SUCCESS
:
case
ERROR_INTERNET_INCORRECT_PASSWORD
:
{
case
ERROR_INTERNET_INCORRECT_PASSWORD
:
{
DWORD
dwStatus
;
if
(
!
dwError
&&
!
(
dwFlags
&
FLAGS_ERROR_UI_FILTER_FOR_ERRORS
)
)
if
(
!
dwError
&&
!
(
dwFlags
&
FLAGS_ERROR_UI_FILTER_FOR_ERRORS
)
)
break
;
break
;
if
(
!
req
)
if
(
!
req
)
return
ERROR_INVALID_HANDLE
;
return
ERROR_INVALID_HANDLE
;
dwStatus
=
WININET_GetConnectionStatus
(
hRequest
);
switch
(
req
->
status_code
)
{
switch
(
dwStatus
)
{
case
HTTP_STATUS_PROXY_AUTH_REQ
:
case
HTTP_STATUS_PROXY_AUTH_REQ
:
res
=
DialogBoxParamW
(
WININET_hModule
,
MAKEINTRESOURCEW
(
IDD_PROXYDLG
),
res
=
DialogBoxParamW
(
WININET_hModule
,
MAKEINTRESOURCEW
(
IDD_PROXYDLG
),
hWnd
,
WININET_ProxyPasswordDialog
,
(
LPARAM
)
&
params
);
hWnd
,
WININET_ProxyPasswordDialog
,
(
LPARAM
)
&
params
);
...
@@ -550,7 +524,7 @@ DWORD WINAPI InternetErrorDlg(HWND hWnd, HINTERNET hRequest,
...
@@ -550,7 +524,7 @@ DWORD WINAPI InternetErrorDlg(HWND hWnd, HINTERNET hRequest,
hWnd
,
WININET_PasswordDialog
,
(
LPARAM
)
&
params
);
hWnd
,
WININET_PasswordDialog
,
(
LPARAM
)
&
params
);
break
;
break
;
default:
default:
WARN
(
"unhandled status %u
\n
"
,
dwStatus
);
WARN
(
"unhandled status %u
\n
"
,
req
->
status_code
);
}
}
break
;
break
;
}
}
...
...
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