ws2_32: Trace getpeername() result
Bruno Jesus
00cpxxx at gmail.com
Wed Jan 14 18:51:16 CST 2015
Exactly like getsockname. Sample output:
trace:winsock:WS_getpeername socket: 00b8, ptr 0x32fb20, len 00000010
trace:winsock:WS_getpeername => { family AF_INET, address 127.0.0.1,
port 33612 }
-------------- next part --------------
diff --git a/dlls/ws2_32/socket.c b/dlls/ws2_32/socket.c
index 5b9a441..0bc9d16 100644
--- a/dlls/ws2_32/socket.c
+++ b/dlls/ws2_32/socket.c
@@ -2985,7 +2985,10 @@ int WINAPI WS_getpeername(SOCKET s, struct WS_sockaddr *name, int *namelen)
/* The buffer was too small */
SetLastError(WSAEFAULT);
else
+ {
res = 0;
+ TRACE("=> %s\n", debugstr_sockaddr(name));
+ }
}
else
SetLastError(wsaErrno());
More information about the wine-patches
mailing list