http://git.etersoft.ru/projects
/
wine
/
eterwine.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e5cc92f
)
ws2_32: Implemented SO_CONNECT_TIME stub.
author
Marcus Meissner
<meissner@suse.de>
Wed, 26 Jan 2011 16:01:09 +0000
(17:01 +0100)
committer
Alexandre Julliard
<julliard@winehq.org>
Wed, 26 Jan 2011 16:31:40 +0000
(17:31 +0100)
dlls/ws2_32/socket.c
patch
|
blob
|
blame
|
history
diff --git
a/dlls/ws2_32/socket.c
b/dlls/ws2_32/socket.c
index 774481daa9e4d1c946741c9362e6ec6db4ead883..f3a521c63b4aea6c84dfbadfdca86fca12bd5bda 100644
(file)
--- a/
dlls/ws2_32/socket.c
+++ b/
dlls/ws2_32/socket.c
@@
-2536,6
+2536,20
@@
INT WINAPI WS_getsockopt(SOCKET s, INT level,
return ret;
}
+ case WS_SO_CONNECT_TIME:
+ {
+ static int pretendtime = 0;
+
+ if (!pretendtime) FIXME("WS_SO_CONNECT_TIME - faking results\n");
+ if (!optlen || *optlen < sizeof(DWORD) || !optval)
+ {
+ SetLastError(WSAEFAULT);
+ return SOCKET_ERROR;
+ }
+ *(DWORD*)optval = pretendtime++;
+ *optlen = sizeof(DWORD);
+ return ret;
+ }
/* As mentioned in setsockopt, Windows ignores this, so we
* always return true here */
case WS_SO_DONTROUTE: