Commit 68494661 authored by Lionel Ulmer's avatar Lionel Ulmer Committed by Alexandre Julliard

Properly handle asynchronous HttpSendRequestA.

parent b99cb051
......@@ -1923,7 +1923,7 @@ HINTERNET WINAPI InternetOpenUrlA(HINTERNET hInternet, LPCSTR lpszUrl,
return NULL;
}
HttpAddRequestHeadersA(client1, lpszHeaders, dwHeadersLength, HTTP_ADDREQ_FLAG_ADD);
if(!HttpSendRequestA(client1, NULL, 0, NULL, 0)) {
if((!HttpSendRequestA(client1, NULL, 0, NULL, 0)) && (GetLastError() != ERROR_IO_PENDING)) {
InternetCloseHandle(client1);
InternetCloseHandle(client);
return NULL;
......
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