Use of proper test gets rid of a signed/unsigned warning.

This commit is contained in:
Joerg Mayer 2001-04-17 17:30:44 +00:00 committed by Alexandre Julliard
parent 8f7ac8b5cd
commit 793e1179ac
1 changed files with 2 additions and 2 deletions

View File

@ -193,7 +193,7 @@ DWORD WINAPI WsControl(DWORD protocoll,
}
/* Get a socket so that we can use ioctl */
if ( (sock = socket (AF_INET, SOCK_DGRAM, 0)) < 0)
if ( (sock = socket (AF_INET, SOCK_DGRAM, 0)) == INVALID_SOCKET)
{
ERR ("Error creating socket!\n");
return (-1);
@ -359,7 +359,7 @@ DWORD WINAPI WsControl(DWORD protocoll,
/* Get a socket so we can use ioctl */
if ( (sock = socket (AF_INET, SOCK_DGRAM, 0)) < 0)
if ( (sock = socket (AF_INET, SOCK_DGRAM, 0)) == INVALID_SOCKET)
{
ERR ("Error creating socket!\n");
return (-1);