diff --git a/dlls/wininet/internet.c b/dlls/wininet/internet.c index 3fe852ab0a1..92d961d2c18 100644 --- a/dlls/wininet/internet.c +++ b/dlls/wininet/internet.c @@ -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;