Commit 0a20f18a authored by Francois Gouget's avatar Francois Gouget Committed by Alexandre Julliard

wininet: HttpSendRequestW() returns ERROR_IO_PENDING when called on an async…

wininet: HttpSendRequestW() returns ERROR_IO_PENDING when called on an async socket. But that does not mean that it failed.
parent 1f67fa0a
...@@ -2939,7 +2939,8 @@ HINTERNET WINAPI INTERNET_InternetOpenUrlW(LPWININETAPPINFOW hIC, LPCWSTR lpszUr ...@@ -2939,7 +2939,8 @@ HINTERNET WINAPI INTERNET_InternetOpenUrlW(LPWININETAPPINFOW hIC, LPCWSTR lpszUr
break; break;
} }
HttpAddRequestHeadersW(client1, lpszHeaders, dwHeadersLength, HTTP_ADDREQ_FLAG_ADD); HttpAddRequestHeadersW(client1, lpszHeaders, dwHeadersLength, HTTP_ADDREQ_FLAG_ADD);
if (!HttpSendRequestW(client1, NULL, 0, NULL, 0)) { if (!HttpSendRequestW(client1, NULL, 0, NULL, 0) &&
GetLastError() != ERROR_IO_PENDING) {
InternetCloseHandle(client1); InternetCloseHandle(client1);
client1 = NULL; client1 = NULL;
break; break;
......
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