[ros-diffs] [sgasiorek] 20275: when message is not unicode then
SendMessageA should be used. Fixes #1152 and combobox in
"Run..." dialog
sgasiorek at svn.reactos.com
sgasiorek at svn.reactos.com
Tue Dec 20 14:24:52 CET 2005
when message is not unicode then SendMessageA should be used. Fixes
#1152 and combobox in "Run..." dialog
Modified: trunk/reactos/lib/user32/controls/combo.c
_____
Modified: trunk/reactos/lib/user32/controls/combo.c
--- trunk/reactos/lib/user32/controls/combo.c 2005-12-20 09:45:53 UTC
(rev 20274)
+++ trunk/reactos/lib/user32/controls/combo.c 2005-12-20 13:24:47 UTC
(rev 20275)
@@ -2075,7 +2075,10 @@
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 @@
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:
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.reactos.org/pipermail/ros-diffs/attachments/20051220/5fdffc53/attachment.html
More information about the Ros-diffs
mailing list