summaryrefslogtreecommitdiffstats
path: root/Source/kwsys/SystemTools.cxx
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2005-04-22 13:22:07 (GMT)
committerBrad King <brad.king@kitware.com>2005-04-22 13:22:07 (GMT)
commit8136f6981310c2eec663cdb1471fc2db11320f65 (patch)
tree3a45660ef5295551e00c77e655b4526086caeba0 /Source/kwsys/SystemTools.cxx
parentc13fee6ebd428b5d9cf217414d3c8abafb79b75c (diff)
downloadCMake-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.cxx3
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))