Francois Gouget : wininet: HttpSendRequestW()
returns ERROR_IO_PENDING when called on an async socket.
But that does not mean that it failed.
Alexandre Julliard
julliard at wine.codeweavers.com
Fri Oct 20 08:00:39 CDT 2006
Module: wine
Branch: master
Commit: 0a20f18a8014f3fe3b2a2a396084ad109ee47fb4
URL: http://source.winehq.org/git/wine.git/?a=commit;h=0a20f18a8014f3fe3b2a2a396084ad109ee47fb4
Author: Francois Gouget <fgouget at codeweavers.com>
Date: Wed Oct 18 21:22:21 2006 +0200
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 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;
More information about the wine-cvs
mailing list