ws2_32: Return the correct address family in WSAStringToAddressA.

This commit is contained in:
Bruno Jesus 2014-01-18 19:03:27 -02:00 committed by Alexandre Julliard
parent 06a6b189f6
commit 4c6e04050f
1 changed files with 1 additions and 1 deletions

View File

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