Commit 6fb0c790 authored by Hans Leidekker's avatar Hans Leidekker Committed by Alexandre Julliard

winhttp: Get rid of read_data_t.

parent 41c72bff
......@@ -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;
......
......@@ -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
{
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment