winhttp: Fix sending data with synchronous requests.

This commit is contained in:
Hans Leidekker 2011-11-09 15:04:41 +01:00 committed by Alexandre Julliard
parent bdbd17c72a
commit 82965248d1
1 changed files with 1 additions and 1 deletions

View File

@ -2931,9 +2931,9 @@ static HRESULT WINAPI winhttp_request_Send(
LeaveCriticalSection( &request->cs ); LeaveCriticalSection( &request->cs );
return S_OK; return S_OK;
} }
request->data = body;
if (request->wait) /* async request */ if (request->wait) /* async request */
{ {
request->data = body;
if (!(request->thread = CreateThread( NULL, 0, send_and_receive_proc, request, 0, NULL ))) if (!(request->thread = CreateThread( NULL, 0, send_and_receive_proc, request, 0, NULL )))
{ {
LeaveCriticalSection( &request->cs ); LeaveCriticalSection( &request->cs );