when message is not unicode then SendMessageA should be used. Fixes #1152 and combobo...
authorSebastian Gasiorek <sebastian.gasiorek@reactos.org>
Tue, 20 Dec 2005 13:24:47 +0000 (13:24 +0000)
committerSebastian Gasiorek <sebastian.gasiorek@reactos.org>
Tue, 20 Dec 2005 13:24:47 +0000 (13:24 +0000)
svn path=/trunk/; revision=20275

reactos/lib/user32/controls/combo.c

index 7e5f764..c0fc583 100644 (file)
@@ -2075,7 +2075,10 @@ static LRESULT ComboWndProc_common( HWND hwnd, UINT message,
                     msg = LB_ADDSTRING_LOWER;
                 else if( lphc->dwStyle & CBS_UPPERCASE )
                     msg = LB_ADDSTRING_UPPER;
-                return SendMessageW(lphc->hWndLBox, msg, 0, lParam);
+                if( unicode )
+                    return SendMessageW(lphc->hWndLBox, msg, 0, lParam);
+                else
+                    return SendMessageA(lphc->hWndLBox, msg, 0, lParam);
         }
 #ifndef __REACTOS__
        case CB_INSERTSTRING16:
@@ -2090,7 +2093,10 @@ static LRESULT ComboWndProc_common( HWND hwnd, UINT message,
                     msg = LB_INSERTSTRING_LOWER;
                 else if( lphc->dwStyle & CBS_UPPERCASE )
                     msg = LB_INSERTSTRING_UPPER;
-                return SendMessageW(lphc->hWndLBox, msg, 0, lParam);
+                if( unicode )
+                    return SendMessageW(lphc->hWndLBox, msg, 0, lParam);
+                else
+                    return SendMessageA(lphc->hWndLBox, msg, 0, lParam);
         }
 #ifndef __REACTOS__
        case CB_DELETESTRING16: