Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
4ba60d26
Commit
4ba60d26
authored
May 19, 2010
by
Piotr Caban
Committed by
Alexandre Julliard
May 19, 2010
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wininet: Fix callbacks sent on connection error.
parent
8e10c653
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
5 deletions
+9
-5
http.c
dlls/wininet/http.c
+9
-5
No files found.
dlls/wininet/http.c
View file @
4ba60d26
...
...
@@ -3668,7 +3668,7 @@ lend:
HTTP_ReceiveRequestData
(
lpwhr
,
TRUE
);
else
{
iar
.
dwResult
=
(
DWORD_PTR
)
lpwhr
->
hdr
.
hInternet
;
iar
.
dwResult
=
0
;
iar
.
dwError
=
res
;
INTERNET_SendCallback
(
&
lpwhr
->
hdr
,
lpwhr
->
hdr
.
dwContext
,
...
...
@@ -4360,6 +4360,10 @@ static DWORD HTTP_OpenConnection(http_request_t *lpwhr)
if
(
res
!=
ERROR_SUCCESS
)
goto
lend
;
INTERNET_SendCallback
(
&
lpwhr
->
hdr
,
lpwhr
->
hdr
.
dwContext
,
INTERNET_STATUS_CONNECTED_TO_SERVER
,
szaddr
,
strlen
(
szaddr
)
+
1
);
if
(
lpwhr
->
hdr
.
dwFlags
&
INTERNET_FLAG_SECURE
)
{
/* Note: we differ from Microsoft's WinINet here. they seem to have
...
...
@@ -4368,20 +4372,20 @@ static DWORD HTTP_OpenConnection(http_request_t *lpwhr)
* behaviour to be more correct and to not cause any incompatibilities
* because using a secure connection through a proxy server is a rare
* case that would be hard for anyone to depend on */
if
(
hIC
->
lpszProxy
&&
(
res
=
HTTP_SecureProxyConnect
(
lpwhr
))
!=
ERROR_SUCCESS
)
if
(
hIC
->
lpszProxy
&&
(
res
=
HTTP_SecureProxyConnect
(
lpwhr
))
!=
ERROR_SUCCESS
)
{
HTTPREQ_CloseConnection
(
&
lpwhr
->
hdr
);
goto
lend
;
}
res
=
NETCON_secure_connect
(
&
lpwhr
->
netConnection
,
lpwhs
->
lpszHostName
);
if
(
res
!=
ERROR_SUCCESS
)
{
WARN
(
"Couldn't connect securely to host
\n
"
);
HTTPREQ_CloseConnection
(
&
lpwhr
->
hdr
);
goto
lend
;
}
}
INTERNET_SendCallback
(
&
lpwhr
->
hdr
,
lpwhr
->
hdr
.
dwContext
,
INTERNET_STATUS_CONNECTED_TO_SERVER
,
szaddr
,
strlen
(
szaddr
)
+
1
);
lend:
lpwhr
->
read_pos
=
lpwhr
->
read_size
=
0
;
...
...
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