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
6fb0c790
Commit
6fb0c790
authored
Nov 15, 2018
by
Hans Leidekker
Committed by
Alexandre Julliard
Nov 15, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winhttp: Get rid of read_data_t.
Signed-off-by:
Hans Leidekker
<
hans@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
41c72bff
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
7 deletions
+7
-7
request.c
dlls/winhttp/request.c
+3
-3
winhttp_private.h
dlls/winhttp/winhttp_private.h
+4
-4
No files found.
dlls/winhttp/request.c
View file @
6fb0c790
...
@@ -2958,7 +2958,7 @@ BOOL WINAPI WinHttpQueryDataAvailable( HINTERNET hrequest, LPDWORD available )
...
@@ -2958,7 +2958,7 @@ BOOL WINAPI WinHttpQueryDataAvailable( HINTERNET hrequest, LPDWORD available )
static
void
task_read_data
(
struct
task_header
*
task
)
static
void
task_read_data
(
struct
task_header
*
task
)
{
{
read_data_t
*
r
=
(
read_data_t
*
)
task
;
struct
read_data
*
r
=
(
struct
read_data
*
)
task
;
read_data
(
r
->
hdr
.
request
,
r
->
buffer
,
r
->
to_read
,
r
->
read
,
TRUE
);
read_data
(
r
->
hdr
.
request
,
r
->
buffer
,
r
->
to_read
,
r
->
read
,
TRUE
);
}
}
...
@@ -2986,9 +2986,9 @@ BOOL WINAPI WinHttpReadData( HINTERNET hrequest, LPVOID buffer, DWORD to_read, L
...
@@ -2986,9 +2986,9 @@ BOOL WINAPI WinHttpReadData( HINTERNET hrequest, LPVOID buffer, DWORD to_read, L
if
(
request
->
connect
->
hdr
.
flags
&
WINHTTP_FLAG_ASYNC
)
if
(
request
->
connect
->
hdr
.
flags
&
WINHTTP_FLAG_ASYNC
)
{
{
read_data_t
*
r
;
struct
read_data
*
r
;
if
(
!
(
r
=
heap_alloc
(
sizeof
(
read_data_t
)
)))
return
FALSE
;
if
(
!
(
r
=
heap_alloc
(
sizeof
(
struct
read_data
)
)))
return
FALSE
;
r
->
hdr
.
request
=
request
;
r
->
hdr
.
request
=
request
;
r
->
hdr
.
proc
=
task_read_data
;
r
->
hdr
.
proc
=
task_read_data
;
r
->
buffer
=
buffer
;
r
->
buffer
=
buffer
;
...
...
dlls/winhttp/winhttp_private.h
View file @
6fb0c790
...
@@ -243,13 +243,13 @@ struct query_data
...
@@ -243,13 +243,13 @@ struct query_data
DWORD
*
available
;
DWORD
*
available
;
};
};
typedef
struct
struct
read_data
{
{
struct
task_header
hdr
;
struct
task_header
hdr
;
LPVOID
buffer
;
void
*
buffer
;
DWORD
to_read
;
DWORD
to_read
;
LPDWORD
read
;
DWORD
*
read
;
}
read_data_t
;
};
typedef
struct
typedef
struct
{
{
...
...
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