[cmake-commits] king committed SystemInformation.cxx 1.21 1.22

cmake-commits at cmake.org cmake-commits at cmake.org
Sun Feb 3 08:20:13 EST 2008


Update of /cvsroot/CMake/CMake/Source/kwsys
In directory public:/mounts/ram/cvs-serv22856

Modified Files:
	SystemInformation.cxx 
Log Message:
COMP: Fix warning in SystemInformation.cxx about possibly incorrect assignment in if condition.


Index: SystemInformation.cxx
===================================================================
RCS file: /cvsroot/CMake/CMake/Source/kwsys/SystemInformation.cxx,v
retrieving revision 1.21
retrieving revision 1.22
diff -u -d -r1.21 -r1.22
--- SystemInformation.cxx	3 Feb 2008 13:14:38 -0000	1.21
+++ SystemInformation.cxx	3 Feb 2008 13:20:11 -0000	1.22
@@ -2927,8 +2927,8 @@
   // 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)) 



More information about the Cmake-commits mailing list