Commit a9a1cd26 authored by Juan Lang's avatar Juan Lang Committed by Alexandre Julliard

ws2_32: Remove an unnecessary cast.

parent f59a3097
......@@ -4936,8 +4936,7 @@ INT WINAPI WSAAddressToStringA( LPSOCKADDR sockaddr, DWORD len,
if (!sockaddr || len < sizeof(SOCKADDR_IN)) return SOCKET_ERROR;
if (!string || !lenstr) return SOCKET_ERROR;
/* sin_family is guaranteed to be the first u_short */
switch(((SOCKADDR_IN *)sockaddr)->sin_family)
switch(sockaddr->sa_family)
{
case WS_AF_INET:
sprintf( buffer, "%u.%u.%u.%u:%u",
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment