winhttp: Get rid of send_request_t.
Signed-off-by: Hans Leidekker <hans@codeweavers.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
b603c5e05c
commit
85b6c2b9c8
|
@ -2166,7 +2166,7 @@ end:
|
|||
|
||||
static void task_send_request( struct task_header *task )
|
||||
{
|
||||
send_request_t *s = (send_request_t *)task;
|
||||
struct send_request *s = (struct send_request *)task;
|
||||
send_request( s->hdr.request, s->headers, s->headers_len, s->optional, s->optional_len, s->total_len, s->context, TRUE );
|
||||
heap_free( s->headers );
|
||||
}
|
||||
|
@ -2199,9 +2199,9 @@ BOOL WINAPI WinHttpSendRequest( HINTERNET hrequest, LPCWSTR headers, DWORD heade
|
|||
|
||||
if (request->connect->hdr.flags & WINHTTP_FLAG_ASYNC)
|
||||
{
|
||||
send_request_t *s;
|
||||
struct send_request *s;
|
||||
|
||||
if (!(s = heap_alloc( sizeof(send_request_t) ))) return FALSE;
|
||||
if (!(s = heap_alloc( sizeof(struct send_request) ))) return FALSE;
|
||||
s->hdr.request = request;
|
||||
s->hdr.proc = task_send_request;
|
||||
s->headers = strdupW( headers );
|
||||
|
|
|
@ -221,16 +221,16 @@ struct task_header
|
|||
void (*proc)( struct task_header * );
|
||||
};
|
||||
|
||||
typedef struct
|
||||
struct send_request
|
||||
{
|
||||
struct task_header hdr;
|
||||
LPWSTR headers;
|
||||
WCHAR *headers;
|
||||
DWORD headers_len;
|
||||
LPVOID optional;
|
||||
void *optional;
|
||||
DWORD optional_len;
|
||||
DWORD total_len;
|
||||
DWORD_PTR context;
|
||||
} send_request_t;
|
||||
};
|
||||
|
||||
typedef struct
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue