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
9e08c551
Commit
9e08c551
authored
May 04, 2016
by
Jacek Caban
Committed by
Alexandre Julliard
May 05, 2016
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wininet: Added support for IRF_NO_WAIT flag.
Signed-off-by:
Jacek Caban
<
jacek@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
87fffa1e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
5 deletions
+12
-5
http.c
dlls/wininet/http.c
+12
-5
No files found.
dlls/wininet/http.c
View file @
9e08c551
...
...
@@ -3112,14 +3112,19 @@ static void AsyncReadFileExProc(task_header_t *hdr)
{
read_file_ex_task_t
*
task
=
(
read_file_ex_task_t
*
)
hdr
;
http_request_t
*
req
=
(
http_request_t
*
)
task
->
hdr
.
hdr
;
DWORD
res
;
DWORD
res
=
ERROR_SUCCESS
,
read
=
0
,
buffered
=
0
;
TRACE
(
"
INTERNETREADFILEEXW %p
\n
"
,
task
->
hdr
.
hdr
);
TRACE
(
"
%p
\n
"
,
req
);
res
=
HTTPREQ_Read
(
req
,
task
->
buf
,
task
->
size
,
task
->
ret_read
);
if
(
task
->
ret_read
)
res
=
HTTPREQ_Read
(
req
,
task
->
buf
,
task
->
size
,
&
read
);
if
(
res
==
ERROR_SUCCESS
)
res
=
refill_read_buffer
(
req
,
task
->
ret_read
?
BLOCKING_DISALLOW
:
BLOCKING_ALLOW
,
&
buffered
);
if
(
res
==
ERROR_SUCCESS
)
{
DWORD
read
=
*
task
->
ret_read
;
if
(
task
->
ret_read
)
*
task
->
ret_read
=
read
;
read
+=
buffered
;
INTERNET_SendCallback
(
&
req
->
hdr
,
req
->
hdr
.
dwContext
,
INTERNET_STATUS_RESPONSE_RECEIVED
,
&
read
,
sizeof
(
read
));
}
...
...
@@ -3134,6 +3139,8 @@ static DWORD HTTPREQ_ReadFileEx(object_header_t *hdr, void *buf, DWORD size, DWO
http_request_t
*
req
=
(
http_request_t
*
)
hdr
;
DWORD
res
,
read
,
cread
,
error
=
ERROR_SUCCESS
;
TRACE
(
"(%p %p %u %x)
\n
"
,
req
,
buf
,
size
,
flags
);
if
(
flags
&
~
(
IRF_ASYNC
|
IRF_NO_WAIT
))
FIXME
(
"these dwFlags aren't implemented: 0x%x
\n
"
,
flags
&
~
(
IRF_ASYNC
|
IRF_NO_WAIT
));
...
...
@@ -3157,7 +3164,7 @@ static DWORD HTTPREQ_ReadFileEx(object_header_t *hdr, void *buf, DWORD size, DWO
task
=
alloc_async_task
(
&
req
->
hdr
,
AsyncReadFileExProc
,
sizeof
(
*
task
));
task
->
buf
=
buf
;
task
->
size
=
size
;
task
->
ret_read
=
ret_read
;
task
->
ret_read
=
(
flags
&
IRF_NO_WAIT
)
?
NULL
:
ret_read
;
INTERNET_AsyncCall
(
&
task
->
hdr
);
...
...
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