Hans Leidekker : winhttp: Get rid of send_request_t.
Alexandre Julliard
julliard at winehq.org
Tue Nov 6 15:10:06 CST 2018
Module: wine
Branch: master
Commit: 85b6c2b9c818d69ae94f9bd606c02730e21d2430
URL: https://source.winehq.org/git/wine.git/?a=commit;h=85b6c2b9c818d69ae94f9bd606c02730e21d2430
Author: Hans Leidekker <hans at codeweavers.com>
Date: Tue Nov 6 16:09:02 2018 +0100
winhttp: Get rid of send_request_t.
Signed-off-by: Hans Leidekker <hans at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>
---
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 2475a5e..e3cc394 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 ec6464a..e50e5fa 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
{
More information about the wine-cvs
mailing list