winhttp: Get rid of write_data_t.

Signed-off-by: Hans Leidekker <hans@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Hans Leidekker 2018-11-15 12:38:49 +01:00 committed by Alexandre Julliard
parent 6fb0c79022
commit cf22c2c16c
2 changed files with 7 additions and 7 deletions

View File

@ -3030,7 +3030,7 @@ static BOOL write_data( request_t *request, LPCVOID buffer, DWORD to_write, LPDW
static void task_write_data( struct task_header *task )
{
write_data_t *w = (write_data_t *)task;
struct write_data *w = (struct write_data *)task;
write_data( w->hdr.request, w->buffer, w->to_write, w->written, TRUE );
}
@ -3058,9 +3058,9 @@ BOOL WINAPI WinHttpWriteData( HINTERNET hrequest, LPCVOID buffer, DWORD to_write
if (request->connect->hdr.flags & WINHTTP_FLAG_ASYNC)
{
write_data_t *w;
struct write_data *w;
if (!(w = heap_alloc( sizeof(write_data_t) ))) return FALSE;
if (!(w = heap_alloc( sizeof(struct write_data) ))) return FALSE;
w->hdr.request = request;
w->hdr.proc = task_write_data;
w->buffer = buffer;

View File

@ -251,13 +251,13 @@ struct read_data
DWORD *read;
};
typedef struct
struct write_data
{
struct task_header hdr;
LPCVOID buffer;
const void *buffer;
DWORD to_write;
LPDWORD written;
} write_data_t;
DWORD *written;
};
object_header_t *addref_object( object_header_t * ) DECLSPEC_HIDDEN;
object_header_t *grab_object( HINTERNET ) DECLSPEC_HIDDEN;