Commit cf22c2c1 authored by Hans Leidekker's avatar Hans Leidekker Committed by Alexandre Julliard

winhttp: Get rid of write_data_t.

parent 6fb0c790
......@@ -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;
......
......@@ -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;
......
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