From 690046e3d2340acb8cc51d7b310e9c6f399aa46e Mon Sep 17 00:00:00 2001 From: Hans Leidekker Date: Thu, 15 Nov 2018 12:38:46 +0100 Subject: [PATCH] winhttp: Get rid of receive_response_t. Signed-off-by: Hans Leidekker Signed-off-by: Alexandre Julliard --- dlls/winhttp/request.c | 6 +++--- dlls/winhttp/winhttp_private.h | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/dlls/winhttp/request.c b/dlls/winhttp/request.c index 77d5315862b..f51f34bf5b3 100644 --- a/dlls/winhttp/request.c +++ b/dlls/winhttp/request.c @@ -2839,7 +2839,7 @@ static BOOL receive_response( request_t *request, BOOL async ) static void task_receive_response( struct task_header *task ) { - receive_response_t *r = (receive_response_t *)task; + struct receive_response *r = (struct receive_response *)task; receive_response( r->hdr.request, TRUE ); } @@ -2867,9 +2867,9 @@ BOOL WINAPI WinHttpReceiveResponse( HINTERNET hrequest, LPVOID reserved ) if (request->connect->hdr.flags & WINHTTP_FLAG_ASYNC) { - receive_response_t *r; + struct receive_response *r; - if (!(r = heap_alloc( sizeof(receive_response_t) ))) return FALSE; + if (!(r = heap_alloc( sizeof(struct receive_response) ))) return FALSE; r->hdr.request = request; r->hdr.proc = task_receive_response; diff --git a/dlls/winhttp/winhttp_private.h b/dlls/winhttp/winhttp_private.h index cbf9a365993..a27241b36db 100644 --- a/dlls/winhttp/winhttp_private.h +++ b/dlls/winhttp/winhttp_private.h @@ -232,10 +232,10 @@ struct send_request DWORD_PTR context; }; -typedef struct +struct receive_response { struct task_header hdr; -} receive_response_t; +}; typedef struct {