wininet: HttpSendRequestW() returns ERROR_IO_PENDING when called on an async socket. But that does not mean that it failed.
This commit is contained in:
parent
1f67fa0acf
commit
0a20f18a80
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue