ws2_32: Prevent segfault in trace for NULL AddressString.

This commit is contained in:
Kai Blin 2008-07-03 19:52:14 +02:00 committed by Alexandre Julliard
parent dcabc064fc
commit 1d77d2a826
1 changed files with 2 additions and 2 deletions

View File

@ -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;