diff options
author | Brad King <brad.king@kitware.com> | 2005-04-22 13:22:07 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2005-04-22 13:22:07 (GMT) |
commit | 8136f6981310c2eec663cdb1471fc2db11320f65 (patch) | |
tree | 3a45660ef5295551e00c77e655b4526086caeba0 /Source/kwsys/SystemTools.cxx | |
parent | c13fee6ebd428b5d9cf217414d3c8abafb79b75c (diff) | |
download | CMake-8136f6981310c2eec663cdb1471fc2db11320f65.zip CMake-8136f6981310c2eec663cdb1471fc2db11320f65.tar.gz CMake-8136f6981310c2eec663cdb1471fc2db11320f65.tar.bz2 |
COMP: Fixed assignment-in-conditional warning.
Diffstat (limited to 'Source/kwsys/SystemTools.cxx')
-rw-r--r-- | Source/kwsys/SystemTools.cxx | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Source/kwsys/SystemTools.cxx b/Source/kwsys/SystemTools.cxx index df705e9..f1b59ba 100644 --- a/Source/kwsys/SystemTools.cxx +++ b/Source/kwsys/SystemTools.cxx @@ -3103,7 +3103,8 @@ kwsys_stl::string SystemTools::GetOperatingSystemNameAndVersion() 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)) |