From 82965248d141042ad712a2b6aedd80010ce8a12e Mon Sep 17 00:00:00 2001 From: Hans Leidekker Date: Wed, 9 Nov 2011 15:04:41 +0100 Subject: [PATCH] winhttp: Fix sending data with synchronous requests. --- dlls/winhttp/request.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dlls/winhttp/request.c b/dlls/winhttp/request.c index 0d9e60a9172..899e8b54718 100644 --- a/dlls/winhttp/request.c +++ b/dlls/winhttp/request.c @@ -2931,9 +2931,9 @@ static HRESULT WINAPI winhttp_request_Send( LeaveCriticalSection( &request->cs ); return S_OK; } + request->data = body; if (request->wait) /* async request */ { - request->data = body; if (!(request->thread = CreateThread( NULL, 0, send_and_receive_proc, request, 0, NULL ))) { LeaveCriticalSection( &request->cs );