mirror of https://github.com/PCSX2/pcsx2.git
Misc: Suppress a warning regarding GetVersionEx
This commit is contained in:
parent
627f216bf7
commit
2101e17004
|
@ -1,5 +1,5 @@
|
||||||
/* PCSX2 - PS2 Emulator for PCs
|
/* PCSX2 - PS2 Emulator for PCs
|
||||||
* Copyright (C) 2002-2010 PCSX2 Dev Team
|
* Copyright (C) 2002-2021 PCSX2 Dev Team
|
||||||
*
|
*
|
||||||
* PCSX2 is free software: you can redistribute it and/or modify it under the terms
|
* PCSX2 is free software: you can redistribute it and/or modify it under the terms
|
||||||
* of the GNU Lesser General Public License as published by the Free Software Found-
|
* of the GNU Lesser General Public License as published by the Free Software Found-
|
||||||
|
@ -92,7 +92,8 @@ wxString GetOSVersionString()
|
||||||
memzero(osvi);
|
memzero(osvi);
|
||||||
|
|
||||||
osvi.dwOSVersionInfoSize = sizeof(OSVERSIONINFOEX);
|
osvi.dwOSVersionInfoSize = sizeof(OSVERSIONINFOEX);
|
||||||
|
// GetVersionEx is deprecated, but we don't use it for version checking anyways
|
||||||
|
#pragma warning(suppress : 4996)
|
||||||
if (!(bOsVersionInfoEx = GetVersionEx((OSVERSIONINFO *)&osvi)))
|
if (!(bOsVersionInfoEx = GetVersionEx((OSVERSIONINFO *)&osvi)))
|
||||||
return L"GetVersionEx Error!";
|
return L"GetVersionEx Error!";
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue