Skip to content

Commit 6840506

Browse files
committed
Use sizeof and use Windows 7 as platform target.
1 parent a644bf5 commit 6840506

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/Common/PlatformWindows.inl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@
44
#define DIRECTINPUT_VERSION 0x0800 //
55

66
#ifndef _WIN32_WINNT
7-
// Windows Server 2003 with SP1, Windows XP with SP2
8-
#define _WIN32_WINNT _WIN32_WINNT_WS03
7+
// Request Windows 7 functionality
8+
#define _WIN32_WINNT _WIN32_WINNT_WIN7
99
#endif
1010

1111
#include <sys/utime.h>

src/xrGame/console_commands_mp.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1226,7 +1226,7 @@ class CCC_ListPlayers : public IConsole_Command
12261226
exclude_raid_from_args(args, tmp_dest, sizeof(tmp_dest));
12271227
if (xr_strlen(tmp_dest))
12281228
{
1229-
sscanf_s(tmp_dest, "%s", filter_string, _countof(filter_string));
1229+
sscanf_s(tmp_dest, "%s", filter_string, sizeof(filter_string));
12301230
tmp_functor.filter_string = filter_string;
12311231
}
12321232
}
@@ -1323,7 +1323,7 @@ class CCC_ListPlayers_Banned : public IConsole_Command
13231323
exclude_raid_from_args(args, tmp_dest, sizeof(tmp_dest));
13241324
if (xr_strlen(tmp_dest))
13251325
{
1326-
sscanf_s(tmp_dest, "%s", filter_dest, _countof(filter_dest));
1326+
sscanf_s(tmp_dest, "%s", filter_dest, sizeof(filter_dest));
13271327
}
13281328
tmp_sv_game->PrintBanList(filter_dest);
13291329
Level().Server->Print_Banned_Addreses();

0 commit comments

Comments
 (0)