diff --git a/SystemInformation.cxx b/SystemInformation.cxx index 371c118ec1465c4cf1fda524c09d95692c2696af..f127bef38335d5f39e5a13016815e5d41b94ac2c 100644 --- a/SystemInformation.cxx +++ b/SystemInformation.cxx @@ -2927,8 +2927,8 @@ bool SystemInformationImplementation::QueryOSInformation() // Try calling GetVersionEx using the OSVERSIONINFOEX structure. ZeroMemory (&osvi, sizeof (OSVERSIONINFOEX)); osvi.dwOSVersionInfoSize = sizeof (OSVERSIONINFOEX); - - if (!(bOsVersionInfoEx = GetVersionEx ((OSVERSIONINFO *) &osvi))) + bOsVersionInfoEx = GetVersionEx ((OSVERSIONINFO *) &osvi); + if (!bOsVersionInfoEx) { osvi.dwOSVersionInfoSize = sizeof (OSVERSIONINFO); if (!GetVersionEx ((OSVERSIONINFO *) &osvi))