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
076189c7
Commit
076189c7
authored
Apr 21, 2016
by
Sebastian Lackner
Committed by
Alexandre Julliard
Apr 22, 2016
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wininet: Remove unused 'sync' argument from HTTPREQ_Read.
Signed-off-by:
Sebastian Lackner
<
sebastian@fds-team.de
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
6433fee8
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
6 deletions
+6
-6
http.c
dlls/wininet/http.c
+6
-6
No files found.
dlls/wininet/http.c
View file @
076189c7
...
...
@@ -3036,7 +3036,7 @@ static void HTTP_ReceiveRequestData(http_request_t *req, BOOL first_notif, DWORD
}
/* read data from the http connection (the read section must be held) */
static
DWORD
HTTPREQ_Read
(
http_request_t
*
req
,
void
*
buffer
,
DWORD
size
,
DWORD
*
read
,
BOOL
sync
)
static
DWORD
HTTPREQ_Read
(
http_request_t
*
req
,
void
*
buffer
,
DWORD
size
,
DWORD
*
read
)
{
DWORD
current_read
=
0
,
ret_read
=
0
;
blocking_mode_t
blocking_mode
;
...
...
@@ -3090,7 +3090,7 @@ static BOOL drain_content(http_request_t *req, BOOL blocking)
DWORD
bytes_read
,
res
;
BYTE
buf
[
4096
];
res
=
HTTPREQ_Read
(
req
,
buf
,
sizeof
(
buf
),
&
bytes_read
,
TRUE
);
res
=
HTTPREQ_Read
(
req
,
buf
,
sizeof
(
buf
),
&
bytes_read
);
if
(
res
!=
ERROR_SUCCESS
)
{
ret
=
FALSE
;
break
;
...
...
@@ -3114,7 +3114,7 @@ static DWORD HTTPREQ_ReadFile(object_header_t *hdr, void *buffer, DWORD size, DW
if
(
hdr
->
dwError
==
INTERNET_HANDLE_IN_USE
)
hdr
->
dwError
=
ERROR_INTERNET_INTERNAL_ERROR
;
res
=
HTTPREQ_Read
(
req
,
buffer
,
size
,
read
,
TRUE
);
res
=
HTTPREQ_Read
(
req
,
buffer
,
size
,
read
);
if
(
res
==
ERROR_SUCCESS
)
res
=
hdr
->
dwError
;
LeaveCriticalSection
(
&
req
->
read_section
);
...
...
@@ -3137,7 +3137,7 @@ static void AsyncReadFileExProc(task_header_t *hdr)
TRACE
(
"INTERNETREADFILEEXW %p
\n
"
,
task
->
hdr
.
hdr
);
res
=
HTTPREQ_Read
(
req
,
task
->
buf
,
task
->
size
,
task
->
ret_read
,
TRUE
);
res
=
HTTPREQ_Read
(
req
,
task
->
buf
,
task
->
size
,
task
->
ret_read
);
send_request_complete
(
req
,
res
==
ERROR_SUCCESS
,
res
);
}
...
...
@@ -3161,7 +3161,7 @@ static DWORD HTTPREQ_ReadFileEx(object_header_t *hdr, void *buf, DWORD size, DWO
{
if
(
get_avail_data
(
req
))
{
res
=
HTTPREQ_Read
(
req
,
buf
,
size
,
&
read
,
FALSE
);
res
=
HTTPREQ_Read
(
req
,
buf
,
size
,
&
read
);
LeaveCriticalSection
(
&
req
->
read_section
);
goto
done
;
}
...
...
@@ -3187,7 +3187,7 @@ static DWORD HTTPREQ_ReadFileEx(object_header_t *hdr, void *buf, DWORD size, DWO
hdr
->
dwError
=
ERROR_INTERNET_INTERNAL_ERROR
;
while
(
1
)
{
res
=
HTTPREQ_Read
(
req
,
(
char
*
)
buf
+
read
,
size
-
read
,
&
cread
,
!
(
flags
&
IRF_NO_WAIT
)
);
res
=
HTTPREQ_Read
(
req
,
(
char
*
)
buf
+
read
,
size
-
read
,
&
cread
);
if
(
res
!=
ERROR_SUCCESS
)
break
;
...
...
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