Thx Filip, for pointing this out. Added the missing break, if wState did not get...
[reactos.git] / reactos / lib / user32 / controls / combo.c
index 8372b6a..cfa6b25 100644 (file)
@@ -2314,9 +2314,10 @@ static LRESULT ComboWndProc_common( HWND hwnd, UINT message,
                return  (lphc->wState & CBF_EUI) ? TRUE : FALSE;
        case CB_GETCOMBOBOXINFO:
                return COMBO_GetComboBoxInfo(lphc, (COMBOBOXINFO *)lParam);
-    case CB_LIMITTEXT:
-        if( lphc->wState & CBF_EDIT )
-            return SendMessageW(lphc->hWndEdit, EM_LIMITTEXT, wParam, lParam);
+        case CB_LIMITTEXT:
+                if( lphc->wState & CBF_EDIT )
+                   return SendMessageW(lphc->hWndEdit, EM_LIMITTEXT, wParam, lParam);
+                break;
        default:
                if (message >= WM_USER)
                    WARN("unknown msg WM_USER+%04x wp=%04x lp=%08lx\n",