]> git.saurik.com Git - wxWidgets.git/blobdiff - src/msw/combobox.cpp
more wxPostEvent MT fixes
[wxWidgets.git] / src / msw / combobox.cpp
index 49344341f1f34d46388c273097e4c83c4aa54686..73c68526607c3c38385e5e69307c1421efddea26 100644 (file)
@@ -257,7 +257,7 @@ WXLRESULT wxComboBox::MSWWindowProc(WXUINT nMsg, WXWPARAM wParam, WXLPARAM lPara
             
         case CB_SETCURSEL:
             // Selection was set with SetSelection.  Update the value too.
-            if (wParam < 0 || wParam > GetCount())
+            if ((int)wParam > GetCount())
                 m_value = wxEmptyString;
             else
                 m_value = GetString(wParam);