wininet: HttpSendRequestW() returns ERROR_IO_PENDING when called on an async socket. But that does not mean that it failed.

oldstable
Francois Gouget 2006-10-18 21:22:21 +02:00 committed by Alexandre Julliard
parent 1f67fa0acf
commit 0a20f18a80
1 changed files with 2 additions and 1 deletions

View File

@ -2939,7 +2939,8 @@ HINTERNET WINAPI INTERNET_InternetOpenUrlW(LPWININETAPPINFOW hIC, LPCWSTR lpszUr
break;
}
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);
client1 = NULL;
break;