X-Git-Url: https://de.git.xonotic.org/?a=blobdiff_plain;f=net_wins.c;h=87a75eed9519609c1c1c616ab72192a8bb152c16;hb=826d5f7acd2c1e085f90c0d8f5d9a558d4afb227;hp=3c5a773baad675113f75f9b7e564f4eb8c48dcd9;hpb=85c8ba9ec06127c46afc95ac0101bd154bd90fb0;p=xonotic%2Fdarkplaces.git diff --git a/net_wins.c b/net_wins.c index 3c5a773b..87a75eed 100644 --- a/net_wins.c +++ b/net_wins.c @@ -129,7 +129,7 @@ int WINS_Init (void) if (hInst == NULL) { - Con_SafePrintf ("Failed to load winsock.dll\n"); + Con_SafePrintf ("Failed to load wsock32.dll\n"); winsock_lib_initialized = false; return -1; } @@ -156,7 +156,7 @@ int WINS_Init (void) !pgethostname || !pgethostbyname || !pgethostbyaddr || !pgetsockname) { - Con_SafePrintf ("Couldn't GetProcAddress from winsock.dll\n"); + Con_SafePrintf ("Couldn't GetProcAddress from wsock32.dll\n"); return -1; } @@ -385,7 +385,7 @@ int WINS_CheckNewConnections (void) if (net_acceptsocket == -1) return -1; - if (precvfrom (net_acceptsocket, buf, sizeof(buf), MSG_PEEK, NULL, NULL) > 0) + if (precvfrom (net_acceptsocket, buf, sizeof(buf), MSG_PEEK, NULL, NULL) >= 0) { return net_acceptsocket; }