Fix WSAStartup() error check on Windows
This commit is contained in:
parent
3d10fbd9b4
commit
0cea7fb24c
1 changed files with 2 additions and 2 deletions
|
@ -30,8 +30,8 @@ bool
|
|||
net_init(void) {
|
||||
#ifdef _WIN32
|
||||
WSADATA wsa;
|
||||
int res = WSAStartup(MAKEWORD(2, 2), &wsa) < 0;
|
||||
if (res < 0) {
|
||||
int res = WSAStartup(MAKEWORD(2, 2), &wsa);
|
||||
if (res) {
|
||||
LOGE("WSAStartup failed with error %d", res);
|
||||
return false;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue