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
e894c897
Commit
e894c897
authored
Nov 15, 2013
by
Jacek Caban
Committed by
Alexandre Julliard
Nov 15, 2013
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winhttp: Moved netconn_query_data_available calls to query_data_available.
parent
626a3c6a
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
1 deletion
+5
-1
request.c
dlls/winhttp/request.c
+5
-1
No files found.
dlls/winhttp/request.c
View file @
e894c897
...
...
@@ -1955,7 +1955,7 @@ static BOOL start_next_chunk( request_t *request, BOOL notify )
static
DWORD
get_available_data
(
request_t
*
request
)
{
if
(
request
->
read_chunked
)
return
min
(
request
->
read_chunked_size
,
request
->
read_size
);
return
request
->
read_size
+
netconn_query_data_available
(
&
request
->
netconn
)
;
return
request
->
read_size
;
}
/* check if we have reached the end of the data to read */
...
...
@@ -2391,10 +2391,14 @@ static BOOL query_data_available( request_t *request, DWORD *available, BOOL asy
{
DWORD
count
=
get_available_data
(
request
);
if
(
!
request
->
read_chunked
)
count
+=
netconn_query_data_available
(
&
request
->
netconn
);
if
(
!
count
)
{
refill_buffer
(
request
,
async
);
count
=
get_available_data
(
request
);
if
(
!
request
->
read_chunked
)
count
+=
netconn_query_data_available
(
&
request
->
netconn
);
}
if
(
async
)
send_callback
(
&
request
->
hdr
,
WINHTTP_CALLBACK_STATUS_DATA_AVAILABLE
,
&
count
,
sizeof
(
count
)
);
...
...
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