mirror of
https://github.com/yuzu-emu/mbedtls.git
synced 2025-01-23 20:31:09 +00:00
Fix WSAStartup return value check.
SOCKET_ERROR was not a valid return value. WSAStartup returns 0 on success, so check that instead.
This commit is contained in:
parent
dcbd74f699
commit
1b08bd9525
|
@ -118,7 +118,7 @@ int net_connect( int *fd, const char *host, int port )
|
|||
|
||||
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;
|
||||
|
|
Loading…
Reference in a new issue