Skip to content

Commit ceb1bf5

Browse files
author
Sebastian Gasiorek
committed
when message is not unicode then SendMessageA should be used. Fixes reactos#1152 and combobox in "Run..." dialog
svn path=/trunk/; revision=20275
1 parent 98fb761 commit ceb1bf5

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

reactos/lib/user32/controls/combo.c

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2075,7 +2075,10 @@ static LRESULT ComboWndProc_common( HWND hwnd, UINT message,
20752075
msg = LB_ADDSTRING_LOWER;
20762076
else if( lphc->dwStyle & CBS_UPPERCASE )
20772077
msg = LB_ADDSTRING_UPPER;
2078-
return SendMessageW(lphc->hWndLBox, msg, 0, lParam);
2078+
if( unicode )
2079+
return SendMessageW(lphc->hWndLBox, msg, 0, lParam);
2080+
else
2081+
return SendMessageA(lphc->hWndLBox, msg, 0, lParam);
20792082
}
20802083
#ifndef __REACTOS__
20812084
case CB_INSERTSTRING16:
@@ -2090,7 +2093,10 @@ static LRESULT ComboWndProc_common( HWND hwnd, UINT message,
20902093
msg = LB_INSERTSTRING_LOWER;
20912094
else if( lphc->dwStyle & CBS_UPPERCASE )
20922095
msg = LB_INSERTSTRING_UPPER;
2093-
return SendMessageW(lphc->hWndLBox, msg, 0, lParam);
2096+
if( unicode )
2097+
return SendMessageW(lphc->hWndLBox, msg, 0, lParam);
2098+
else
2099+
return SendMessageA(lphc->hWndLBox, msg, 0, lParam);
20942100
}
20952101
#ifndef __REACTOS__
20962102
case CB_DELETESTRING16:

0 commit comments

Comments
 (0)