From 0a20f18a8014f3fe3b2a2a396084ad109ee47fb4 Mon Sep 17 00:00:00 2001 From: Francois Gouget Date: Wed, 18 Oct 2006 21:22:21 +0200 Subject: [PATCH] wininet: HttpSendRequestW() returns ERROR_IO_PENDING when called on an async socket. But that does not mean that it failed. --- dlls/wininet/internet.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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;