COMP: Fix warning in SystemInformation.cxx about possibly incorrect assignment in if condition.

This commit is contained in:
Brad King 2008-02-03 08:20:11 -05:00
parent 8280232d0d
commit 6b8bb7d7fa
1 changed files with 2 additions and 2 deletions

View File

@ -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))