Author: gbrunmar
Date: Thu May 15 15:11:26 2008
New Revision: 33534
URL:
http://svn.reactos.org/svn/reactos?rev=33534&view=rev
Log:
Synced listbox LB_SETCURSEL behaviour with Wine, to pass a couple of more winetests.
Modified:
trunk/reactos/dll/win32/user32/controls/listbox.c
Modified: trunk/reactos/dll/win32/user32/controls/listbox.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/user32/controls/…
==============================================================================
--- trunk/reactos/dll/win32/user32/controls/listbox.c [iso-8859-1] (original)
+++ trunk/reactos/dll/win32/user32/controls/listbox.c [iso-8859-1] Thu May 15 15:11:26
2008
@@ -3101,10 +3101,10 @@
#endif
case LB_SETCURSEL:
if (IS_MULTISELECT(descr)) return LB_ERR;
- LISTBOX_SetCaretIndex( descr, wParam, TRUE );
+ LISTBOX_SetCaretIndex( descr, wParam, FALSE );
ret = LISTBOX_SetSelection( descr, wParam, TRUE, FALSE );
- if (lphc && ret != LB_ERR) ret = descr->selected_item;
- return ret;
+ if (ret != LB_ERR) ret = descr->selected_item;
+ return ret;
#ifndef __REACTOS__
case LB_GETSELCOUNT16:
@@ -3448,9 +3448,10 @@
break;
default:
- if ((msg >= WM_USER) && (msg < 0xc000))
+ /*if ((msg >= WM_USER) && (msg < 0xc000))
WARN("[%p]: unknown msg %04x wp %08lx lp %08lx\n",
- hwnd, msg, wParam, lParam );
+ hwnd, msg, wParam, lParam );*/
+ break;
}
return unicode ? DefWindowProcW( hwnd, msg, wParam, lParam ) :