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
2d1c4e69
Commit
2d1c4e69
authored
Dec 08, 2009
by
Jacek Caban
Committed by
Alexandre Julliard
Dec 09, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wininet: Correctly handle dwContentRead for gzip encoded requests.
parent
b0f5b96e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
http.c
dlls/wininet/http.c
+2
-1
No files found.
dlls/wininet/http.c
View file @
2d1c4e69
...
...
@@ -1967,6 +1967,7 @@ static DWORD read_gzip_data(http_request_t *req, BYTE *buf, int size, BOOL sync,
zstream
->
avail_out
=
size
-
read
;
zres
=
inflate
(
zstream
,
Z_FULL_FLUSH
);
read
=
size
-
zstream
->
avail_out
;
req
->
dwContentRead
+=
req
->
read_size
-
zstream
->
avail_in
;
remove_data
(
req
,
req
->
read_size
-
zstream
->
avail_in
);
if
(
zres
==
Z_STREAM_END
)
{
TRACE
(
"end of data
\n
"
);
...
...
@@ -2086,9 +2087,9 @@ static DWORD HTTPREQ_Read(http_request_t *req, void *buffer, DWORD size, DWORD *
}
finished_reading
=
!
bytes_read
&&
req
->
dwContentRead
==
req
->
dwContentLength
;
req
->
dwContentRead
+=
bytes_read
;
}
done:
req
->
dwContentRead
+=
bytes_read
;
*
read
=
bytes_read
;
TRACE
(
"retrieved %u bytes (%u/%u)
\n
"
,
bytes_read
,
req
->
dwContentRead
,
req
->
dwContentLength
);
...
...
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