Module: wine Branch: master Commit: 1d77d2a8260700526420776cc0355064afd2ced4 URL: http://source.winehq.org/git/wine.git/?a=commit;h=1d77d2a8260700526420776cc0...
Author: Kai Blin kai.blin@gmail.com Date: Thu Jul 3 19:52:14 2008 +0200
ws2_32: Prevent segfault in trace for NULL AddressString.
---
dlls/ws2_32/socket.c | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/dlls/ws2_32/socket.c b/dlls/ws2_32/socket.c index fa908b4..53478d6 100644 --- a/dlls/ws2_32/socket.c +++ b/dlls/ws2_32/socket.c @@ -4522,8 +4522,8 @@ INT WINAPI WSAStringToAddressA(LPSTR AddressString, INT res=0; LPSTR workBuffer=NULL,ptrPort;
- TRACE( "(%s, %x, %p, %p, %p)\n", AddressString, AddressFamily, lpProtocolInfo, - lpAddress, lpAddressLength ); + TRACE( "(%s, %x, %p, %p, %p)\n", debugstr_a(AddressString), AddressFamily, + lpProtocolInfo, lpAddress, lpAddressLength );
if (!lpAddressLength || !lpAddress) return SOCKET_ERROR;