diff options
author | Brad King <brad.king@kitware.com> | 2008-02-03 13:20:11 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2008-02-03 13:20:11 (GMT) |
commit | 6b8bb7d7fa4ace80d12f09a988b628a9d9f42105 (patch) | |
tree | bb8f0e1cbe5a41d3a1bf50e64b49a9fe40861e32 | |
parent | 8280232d0d9c732fa80a05c6691c8620b2fc7f53 (diff) | |
download | CMake-6b8bb7d7fa4ace80d12f09a988b628a9d9f42105.zip CMake-6b8bb7d7fa4ace80d12f09a988b628a9d9f42105.tar.gz CMake-6b8bb7d7fa4ace80d12f09a988b628a9d9f42105.tar.bz2 |
COMP: Fix warning in SystemInformation.cxx about possibly incorrect assignment in if condition.
-rw-r--r-- | Source/kwsys/SystemInformation.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Source/kwsys/SystemInformation.cxx b/Source/kwsys/SystemInformation.cxx index b370380..1055313 100644 --- a/Source/kwsys/SystemInformation.cxx +++ b/Source/kwsys/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)) |