mirror of
https://github.com/reactos/wine.git
synced 2024-11-26 21:20:25 +00:00
wininet/tests: Do not compare the return value of socket() with 0. Use INVALID_SOCKET instead.
This commit is contained in:
parent
312a1db3ec
commit
6d8c2d744b
@ -1228,7 +1228,8 @@ struct server_info {
|
||||
static DWORD CALLBACK server_thread(LPVOID param)
|
||||
{
|
||||
struct server_info *si = param;
|
||||
int r, s, c, i, on;
|
||||
int r, c, i, on;
|
||||
SOCKET s;
|
||||
struct sockaddr_in sa;
|
||||
char buffer[0x100];
|
||||
WSADATA wsaData;
|
||||
@ -1237,7 +1238,7 @@ static DWORD CALLBACK server_thread(LPVOID param)
|
||||
WSAStartup(MAKEWORD(1,1), &wsaData);
|
||||
|
||||
s = socket(AF_INET, SOCK_STREAM, 0);
|
||||
if (s<0)
|
||||
if (s == INVALID_SOCKET)
|
||||
return 1;
|
||||
|
||||
on = 1;
|
||||
|
Loading…
Reference in New Issue
Block a user