HttpSendRequestW() returns ERROR_IO_PENDING when called on an async
socket. But that does not mean that it failed.
Francois Gouget
fgouget at codeweavers.com
Wed Oct 18 14:22:21 CDT 2006
---
dlls/wininet/internet.c | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/dlls/wininet/internet.c b/dlls/wininet/internet.c
index 3fe852a..92d961d 100644
--- a/dlls/wininet/internet.c
+++ b/dlls/wininet/internet.c
@@ -2939,7 +2939,8 @@ HINTERNET WINAPI INTERNET_InternetOpenUr
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;
--
1.4.1.1
More information about the wine-patches
mailing list