Commit 82965248 authored by Hans Leidekker's avatar Hans Leidekker Committed by Alexandre Julliard

winhttp: Fix sending data with synchronous requests.

parent bdbd17c7
...@@ -2931,9 +2931,9 @@ static HRESULT WINAPI winhttp_request_Send( ...@@ -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 );
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment