diff --git a/library/net.c b/library/net.c index be30fbd30..086614912 100644 --- a/library/net.c +++ b/library/net.c @@ -146,7 +146,7 @@ static int net_prepare( void ) if( wsa_init_done == 0 ) { - if( WSAStartup( MAKEWORD(2,0), &wsaData ) == SOCKET_ERROR ) + if( WSAStartup( MAKEWORD(2,0), &wsaData ) != 0 ) return( POLARSSL_ERR_NET_SOCKET_FAILED ); wsa_init_done = 1;