Bruno Jesus : ws2_32: Better trace shutdown().

Alexandre Julliard julliard at wine.codeweavers.com
Tue Apr 7 10:11:27 CDT 2015


Module: wine
Branch: master
Commit: a07d4e44d0f8753f3ea6353214eec91c8e1c9d5d
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=a07d4e44d0f8753f3ea6353214eec91c8e1c9d5d

Author: Bruno Jesus <00cpxxx at gmail.com>
Date:   Mon Apr  6 20:56:12 2015 -0300

ws2_32: Better trace shutdown().

---

 dlls/ws2_32/socket.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/dlls/ws2_32/socket.c b/dlls/ws2_32/socket.c
index 9d5067a..21946a1 100644
--- a/dlls/ws2_32/socket.c
+++ b/dlls/ws2_32/socket.c
@@ -5367,10 +5367,10 @@ int WINAPI WS_setsockopt(SOCKET s, int level, int optname,
 int WINAPI WS_shutdown(SOCKET s, int how)
 {
     int fd, err = WSAENOTSOCK;
-    unsigned int options, clear_flags = 0;
+    unsigned int options = 0, clear_flags = 0;
 
     fd = get_sock_fd( s, 0, &options );
-    TRACE("socket %04lx, how %i %x\n", s, how, options );
+    TRACE("socket %04lx, how 0x%x, options 0x%x\n", s, how, options );
 
     if (fd == -1)
         return SOCKET_ERROR;




More information about the wine-cvs mailing list