Hans Leidekker : winhttp: Get rid of read_data_t.
Alexandre Julliard
julliard at winehq.org
Thu Nov 15 16:43:26 CST 2018
Module: wine
Branch: master
Commit: 6fb0c79022323a820d122943745f9aa60a346aa0
URL: https://source.winehq.org/git/wine.git/?a=commit;h=6fb0c79022323a820d122943745f9aa60a346aa0
Author: Hans Leidekker <hans at codeweavers.com>
Date: Thu Nov 15 12:38:48 2018 +0100
winhttp: Get rid of read_data_t.
Signed-off-by: Hans Leidekker <hans at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>
---
dlls/winhttp/request.c | 6 +++---
dlls/winhttp/winhttp_private.h | 8 ++++----
2 files changed, 7 insertions(+), 7 deletions(-)
diff --git a/dlls/winhttp/request.c b/dlls/winhttp/request.c
index 7b47ed9..158cb13 100644
--- a/dlls/winhttp/request.c
+++ b/dlls/winhttp/request.c
@@ -2958,7 +2958,7 @@ BOOL WINAPI WinHttpQueryDataAvailable( HINTERNET hrequest, LPDWORD available )
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 );
}
@@ -2986,9 +2986,9 @@ BOOL WINAPI WinHttpReadData( HINTERNET hrequest, LPVOID buffer, DWORD to_read, L
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.proc = task_read_data;
r->buffer = buffer;
diff --git a/dlls/winhttp/winhttp_private.h b/dlls/winhttp/winhttp_private.h
index 1f33ea4..b29cddf 100644
--- a/dlls/winhttp/winhttp_private.h
+++ b/dlls/winhttp/winhttp_private.h
@@ -243,13 +243,13 @@ struct query_data
DWORD *available;
};
-typedef struct
+struct read_data
{
struct task_header hdr;
- LPVOID buffer;
+ void *buffer;
DWORD to_read;
- LPDWORD read;
-} read_data_t;
+ DWORD *read;
+};
typedef struct
{
More information about the wine-cvs
mailing list