Module: wine Branch: master Commit: c3f2eceaf24d051c1f5a627e9798830e5cbb6cb3 URL: http://source.winehq.org/git/wine.git/?a=commit;h=c3f2eceaf24d051c1f5a627e97...
Author: Juan Lang juan.lang@gmail.com Date: Wed Aug 12 09:15:17 2009 -0700
ws2_32: Add debug support for IrDA addresses.
---
dlls/ws2_32/socket.c | 10 ++++++++++ 1 files changed, 10 insertions(+), 0 deletions(-)
diff --git a/dlls/ws2_32/socket.c b/dlls/ws2_32/socket.c index 7d408e0..afa8d9b 100644 --- a/dlls/ws2_32/socket.c +++ b/dlls/ws2_32/socket.c @@ -197,6 +197,16 @@ static inline const char *debugstr_sockaddr( const struct WS_sockaddr *a ) return wine_dbg_sprintf("{ family AF_INET6, address %s, port %d }", p, ntohs(sin->sin6_port)); } + case WS_AF_IRDA: + { + DWORD addr; + + memcpy( &addr, ((const SOCKADDR_IRDA *)a)->irdaDeviceID, sizeof(addr) ); + addr = ntohl( addr ); + return wine_dbg_sprintf("{ family AF_IRDA, addr %08x, name %s }", + addr, + ((const SOCKADDR_IRDA *)a)->irdaServiceName); + } default: return wine_dbg_sprintf("{ family %d }", a->sa_family); }