]> git.saurik.com Git - wxWidgets.git/blobdiff - src/common/strconv.cpp
don't crash if one of GetAllCommands() parameters is NULL (coverity checker CID 11)
[wxWidgets.git] / src / common / strconv.cpp
index 6e3ab7e914713559ce2aab45a7af044ad4c73ee0..7b0e78a69db5d1eba0700ec2bde0c11ba8f66381 100644 (file)
@@ -1834,6 +1834,9 @@ private:
 
     static bool IsAtLeastWin2kSP4()
     {
+#ifdef __WXWINCE__
+        return false;
+#else
         static int s_isAtLeastWin2kSP4 = -1;
 
         if ( s_isAtLeastWin2kSP4 == -1 )
@@ -1853,6 +1856,7 @@ private:
         }
 
         return s_isAtLeastWin2kSP4 == 1;
+#endif
     }
 
     long m_CodePage;