summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2008-02-03 13:20:11 (GMT)
committerBrad King <brad.king@kitware.com>2008-02-03 13:20:11 (GMT)
commit6b8bb7d7fa4ace80d12f09a988b628a9d9f42105 (patch)
treebb8f0e1cbe5a41d3a1bf50e64b49a9fe40861e32
parent8280232d0d9c732fa80a05c6691c8620b2fc7f53 (diff)
downloadCMake-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.cxx4
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))