ws2_32: Prevent segfault in trace for NULL AddressString.
This commit is contained in:
parent
dcabc064fc
commit
1d77d2a826
@ -4522,8 +4522,8 @@ INT WINAPI WSAStringToAddressA(LPSTR AddressString,
|
|||||||
INT res=0;
|
INT res=0;
|
||||||
LPSTR workBuffer=NULL,ptrPort;
|
LPSTR workBuffer=NULL,ptrPort;
|
||||||
|
|
||||||
TRACE( "(%s, %x, %p, %p, %p)\n", AddressString, AddressFamily, lpProtocolInfo,
|
TRACE( "(%s, %x, %p, %p, %p)\n", debugstr_a(AddressString), AddressFamily,
|
||||||
lpAddress, lpAddressLength );
|
lpProtocolInfo, lpAddress, lpAddressLength );
|
||||||
|
|
||||||
if (!lpAddressLength || !lpAddress) return SOCKET_ERROR;
|
if (!lpAddressLength || !lpAddress) return SOCKET_ERROR;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user