[PATCH 5/7] winhttp: Get rid of send_request_t.

Hans Leidekker hans at codeweavers.com
Tue Nov 6 09:09:02 CST 2018


Signed-off-by: Hans Leidekker <hans at codeweavers.com>
---
 dlls/winhttp/request.c         | 6 +++---
 dlls/winhttp/winhttp_private.h | 8 ++++----
 2 files changed, 7 insertions(+), 7 deletions(-)

diff --git a/dlls/winhttp/request.c b/dlls/winhttp/request.c
index 2475a5efd2..e3cc39433f 100644
--- a/dlls/winhttp/request.c
+++ b/dlls/winhttp/request.c
@@ -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 );
diff --git a/dlls/winhttp/winhttp_private.h b/dlls/winhttp/winhttp_private.h
index ec6464a1db..e50e5fad80 100644
--- a/dlls/winhttp/winhttp_private.h
+++ b/dlls/winhttp/winhttp_private.h
@@ -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
 {
-- 
2.11.0




More information about the wine-devel mailing list