when message is not unicode then SendMessageA should be used. Fixes #1152 and combobox in "Run..." dialog

svn path=/trunk/; revision=20275
This commit is contained in:
Sebastian Gasiorek
2005-12-20 13:24:47 +00:00
parent 98fb761850
commit ceb1bf51b8
+8 -2
View 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: