ws2_32: return an error in SO_CONNECT_TIME stub
Austin English
austinenglish at gmail.com
Sun Mar 27 12:17:34 CDT 2011
The stub was added by Marcus for Eye-Fi, but broke Microsoft Flight
Simulator. Returning SOCKET_ERROR makes both apps happy. See
http://bugs.winehq.org/show_bug.cgi?id=26411
--
-Austin
-------------- next part --------------
diff --git a/dlls/ws2_32/socket.c b/dlls/ws2_32/socket.c
index 9469d30..18bc0b6 100644
--- a/dlls/ws2_32/socket.c
+++ b/dlls/ws2_32/socket.c
@@ -2554,7 +2554,7 @@ INT WINAPI WS_getsockopt(SOCKET s, INT level,
}
*(DWORD*)optval = pretendtime++;
*optlen = sizeof(DWORD);
- return ret;
+ return SOCKET_ERROR;
}
/* As mentioned in setsockopt, Windows ignores this, so we
* always return true here */
More information about the wine-patches
mailing list