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
376a4f78
Commit
376a4f78
authored
Feb 26, 2013
by
Jacek Caban
Committed by
Alexandre Julliard
Feb 26, 2013
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wininet: Don't call get_avail_data multiple times in HTTP_ReceiveRequestData.
parent
99421e8c
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
6 deletions
+11
-6
http.c
dlls/wininet/http.c
+11
-6
No files found.
dlls/wininet/http.c
View file @
376a4f78
...
...
@@ -2774,10 +2774,8 @@ static void HTTP_ReceiveRequestData(http_request_t *req, BOOL first_notif, DWORD
mode
=
first_notif
&&
req
->
read_size
?
READMODE_NOBLOCK
:
READMODE_ASYNC
;
res
=
refill_read_buffer
(
req
,
mode
,
&
read
);
if
(
res
==
ERROR_SUCCESS
&&
!
first_notif
)
if
(
res
==
ERROR_SUCCESS
)
avail
=
get_avail_data
(
req
);
if
(
ret_size
)
*
ret_size
=
get_avail_data
(
req
);
LeaveCriticalSection
(
&
req
->
read_section
);
...
...
@@ -2786,10 +2784,17 @@ static void HTTP_ReceiveRequestData(http_request_t *req, BOOL first_notif, DWORD
http_release_netconn
(
req
,
FALSE
);
}
if
(
res
==
ERROR_SUCCESS
)
send_request_complete
(
req
,
req
->
session
->
hdr
.
dwInternalFlags
&
INET_OPENURL
?
(
DWORD_PTR
)
req
->
hdr
.
hInternet
:
1
,
avail
);
else
if
(
res
!=
ERROR_SUCCESS
)
{
send_request_complete
(
req
,
0
,
res
);
return
;
}
if
(
ret_size
)
*
ret_size
=
avail
;
if
(
first_notif
)
avail
=
0
;
send_request_complete
(
req
,
req
->
session
->
hdr
.
dwInternalFlags
&
INET_OPENURL
?
(
DWORD_PTR
)
req
->
hdr
.
hInternet
:
1
,
avail
);
}
/* read data from the http connection (the read section must be held) */
...
...
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