Bruno Jesus : ws2_32: Better trace __WSAFDIsSet.
Alexandre Julliard
julliard at wine.codeweavers.com
Mon Jan 5 15:01:27 CST 2015
Module: wine
Branch: master
Commit: fe127ac36cdc9dafe5979f4ba5d9a83e7ecb45d6
URL: http://source.winehq.org/git/wine.git/?a=commit;h=fe127ac36cdc9dafe5979f4ba5d9a83e7ecb45d6
Author: Bruno Jesus <00cpxxx at gmail.com>
Date: Fri Jan 2 14:07:15 2015 -0200
ws2_32: Better trace __WSAFDIsSet.
---
dlls/ws2_32/socket.c | 14 +++++++++-----
1 file changed, 9 insertions(+), 5 deletions(-)
diff --git a/dlls/ws2_32/socket.c b/dlls/ws2_32/socket.c
index a9ab0a5..f81f842 100644
--- a/dlls/ws2_32/socket.c
+++ b/dlls/ws2_32/socket.c
@@ -6359,13 +6359,17 @@ SOCKET WINAPI WSAJoinLeaf(
*/
int WINAPI __WSAFDIsSet(SOCKET s, WS_fd_set *set)
{
- int i = set->fd_count;
-
- TRACE("(%ld,%p(%i))\n", s, set, i);
+ int i = set->fd_count, ret = 0;
while (i--)
- if (set->fd_array[i] == s) return 1;
- return 0;
+ if (set->fd_array[i] == s)
+ {
+ ret = 1;
+ break;
+ }
+
+ TRACE("(socket %04lx, fd_set %p, count %i) <- %d", s, set, i, ret);
+ return ret;
}
/***********************************************************************
More information about the wine-cvs
mailing list