ws2_32: Return the correct address family in WSAStringToAddressA.
This commit is contained in:
parent
06a6b189f6
commit
4c6e04050f
|
@ -6861,7 +6861,7 @@ INT WINAPI WSAStringToAddressA(LPSTR AddressString,
|
||||||
*lpAddressLength = sizeof(SOCKADDR_IN);
|
*lpAddressLength = sizeof(SOCKADDR_IN);
|
||||||
memset(lpAddress, 0, sizeof(SOCKADDR_IN));
|
memset(lpAddress, 0, sizeof(SOCKADDR_IN));
|
||||||
|
|
||||||
((LPSOCKADDR_IN)lpAddress)->sin_family = AF_INET;
|
((LPSOCKADDR_IN)lpAddress)->sin_family = WS_AF_INET;
|
||||||
|
|
||||||
ptrPort = strchr(workBuffer, ':');
|
ptrPort = strchr(workBuffer, ':');
|
||||||
if(ptrPort)
|
if(ptrPort)
|
||||||
|
|
Loading…
Reference in New Issue