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
67b56774
Commit
67b56774
authored
Mar 09, 2017
by
Jacek Caban
Committed by
Alexandre Julliard
Mar 10, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wininet: Propagate WSAEWOULDBLOCK result from content decoding reads.
Signed-off-by:
Jacek Caban
<
jacek@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
c5eca7be
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
7 deletions
+15
-7
http.c
dlls/wininet/http.c
+15
-7
No files found.
dlls/wininet/http.c
View file @
67b56774
...
...
@@ -484,10 +484,8 @@ static DWORD gzip_read(data_stream_t *stream, http_request_t *req, BYTE *buf, DW
break
;
if
(
!
current_read
)
{
if
(
blocking_mode
!=
BLOCKING_DISALLOW
)
{
WARN
(
"unexpected end of data
\n
"
);
gzip_stream
->
end_of_data
=
TRUE
;
}
WARN
(
"unexpected end of data
\n
"
);
gzip_stream
->
end_of_data
=
TRUE
;
break
;
}
}
...
...
@@ -518,6 +516,8 @@ static DWORD gzip_read(data_stream_t *stream, http_request_t *req, BYTE *buf, DW
}
TRACE
(
"read %u bytes
\n
"
,
ret_read
);
if
(
ret_read
)
res
=
ERROR_SUCCESS
;
*
read
=
ret_read
;
return
res
;
}
...
...
@@ -2572,6 +2572,12 @@ static DWORD read_http_stream(http_request_t *req, BYTE *buf, DWORD size, DWORD
DWORD
res
;
res
=
req
->
data_stream
->
vtbl
->
read
(
req
->
data_stream
,
req
,
buf
,
size
,
read
,
blocking_mode
);
if
(
res
!=
ERROR_SUCCESS
)
{
if
(
res
!=
WSAEWOULDBLOCK
)
return
res
;
*
read
=
0
;
return
ERROR_SUCCESS
;
}
assert
(
*
read
<=
size
);
if
(
req
->
hCacheFile
)
{
...
...
@@ -2584,7 +2590,7 @@ static DWORD read_http_stream(http_request_t *req, BYTE *buf, DWORD size, DWORD
FIXME
(
"WriteFile failed: %u
\n
"
,
GetLastError
());
}
if
(
req
->
data_stream
->
vtbl
->
end_of_data
(
req
->
data_stream
,
req
))
if
(
!*
read
||
req
->
data_stream
->
vtbl
->
end_of_data
(
req
->
data_stream
,
req
))
commit_cache_entry
(
req
);
}
...
...
@@ -2669,7 +2675,7 @@ static DWORD netconn_read(data_stream_t *stream, http_request_t *req, BYTE *buf,
break
;
}
if
(
re
t
||
(
blocking_mode
==
BLOCKING_DISALLOW
&&
res
==
WSAEWOULDBLOCK
)
)
if
(
re
s
==
WSAEWOULDBLOCK
&&
ret
)
res
=
ERROR_SUCCESS
;
}
...
...
@@ -2750,6 +2756,8 @@ static DWORD chunked_read(data_stream_t *stream, http_request_t *req, BYTE *buf,
if
(
res
==
ERROR_SUCCESS
&&
read_bytes
)
{
chunked_stream
->
buf_size
+=
read_bytes
;
}
else
if
(
res
==
WSAEWOULDBLOCK
)
{
if
(
ret_read
)
res
=
ERROR_SUCCESS
;
continue_read
=
FALSE
;
continue
;
}
else
{
...
...
@@ -2853,7 +2861,7 @@ static DWORD chunked_read(data_stream_t *stream, http_request_t *req, BYTE *buf,
if
(
ret_read
)
res
=
ERROR_SUCCESS
;
if
(
res
!=
ERROR_SUCCESS
&&
res
!=
WSAEWOULDBLOCK
)
if
(
res
!=
ERROR_SUCCESS
)
return
res
;
TRACE
(
"read %d bytes
\n
"
,
ret_read
);
...
...
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