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
6ecd01b8
Commit
6ecd01b8
authored
Sep 05, 2008
by
Hans Leidekker
Committed by
Alexandre Julliard
Sep 05, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winhttp: The last parameter of WinHttpQueryDataAvailable and WinHttpReadData is optional.
parent
6fe2edb5
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
4 deletions
+7
-4
request.c
dlls/winhttp/request.c
+7
-4
No files found.
dlls/winhttp/request.c
View file @
6ecd01b8
...
...
@@ -1149,6 +1149,7 @@ BOOL WINAPI WinHttpReceiveResponse( HINTERNET hrequest, LPVOID reserved )
BOOL
WINAPI
WinHttpQueryDataAvailable
(
HINTERNET
hrequest
,
LPDWORD
available
)
{
BOOL
ret
;
DWORD
num_bytes
;
request_t
*
request
;
TRACE
(
"%p, %p
\n
"
,
hrequest
,
available
);
...
...
@@ -1165,8 +1166,9 @@ BOOL WINAPI WinHttpQueryDataAvailable( HINTERNET hrequest, LPDWORD available )
return
FALSE
;
}
ret
=
netconn_query_data_available
(
&
request
->
netconn
,
available
);
ret
=
netconn_query_data_available
(
&
request
->
netconn
,
&
num_bytes
);
if
(
ret
&&
available
)
*
available
=
num_bytes
;
release_object
(
&
request
->
hdr
);
return
ret
;
}
...
...
@@ -1255,7 +1257,7 @@ BOOL WINAPI WinHttpReadData( HINTERNET hrequest, LPVOID buffer, DWORD to_read, L
BOOL
ret
;
request_t
*
request
;
WCHAR
encoding
[
20
];
DWORD
buflen
=
sizeof
(
encoding
);
DWORD
num_bytes
,
buflen
=
sizeof
(
encoding
);
TRACE
(
"%p, %p, %d, %p
\n
"
,
hrequest
,
buffer
,
to_read
,
read
);
...
...
@@ -1274,11 +1276,12 @@ BOOL WINAPI WinHttpReadData( HINTERNET hrequest, LPVOID buffer, DWORD to_read, L
if
(
query_headers
(
request
,
WINHTTP_QUERY_TRANSFER_ENCODING
,
NULL
,
encoding
,
&
buflen
,
NULL
)
&&
!
strcmpiW
(
encoding
,
chunked
))
{
ret
=
read_data_chunked
(
request
,
buffer
,
to_read
,
read
,
request
->
hdr
.
flags
&
WINHTTP_FLAG_ASYNC
);
ret
=
read_data_chunked
(
request
,
buffer
,
to_read
,
&
num_bytes
,
request
->
hdr
.
flags
&
WINHTTP_FLAG_ASYNC
);
}
else
ret
=
read_data
(
request
,
buffer
,
to_read
,
read
,
request
->
hdr
.
flags
&
WINHTTP_FLAG_ASYNC
);
ret
=
read_data
(
request
,
buffer
,
to_read
,
&
num_bytes
,
request
->
hdr
.
flags
&
WINHTTP_FLAG_ASYNC
);
if
(
ret
&&
read
)
*
read
=
num_bytes
;
release_object
(
&
request
->
hdr
);
return
ret
;
}
...
...
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