mirror of
https://github.com/reactos/reactos.git
synced 2025-04-04 20:50:41 +00:00
[USER32][NTUSER] Fix wrong return from LB_GETLISTBOXINFO (#2168)
And is now consistent with comctl32 and Wine too...
This commit is contained in:
parent
c40b0866b1
commit
62e52c7237
2 changed files with 2 additions and 8 deletions
|
@ -3349,10 +3349,7 @@ NtUserGetListBoxInfo(
|
|||
{
|
||||
LB_DESCR *descr = ((PWND2LB)Wnd)->pLBiv;
|
||||
// See Controls ListBox.c:LB_GETLISTBOXINFO must match...
|
||||
if (descr->style & LBS_MULTICOLUMN) //// ReactOS
|
||||
Ret = descr->page_size * descr->column_width;
|
||||
else
|
||||
Ret = descr->page_size;
|
||||
Ret = descr->page_size;
|
||||
}
|
||||
_SEH2_EXCEPT(EXCEPTION_EXECUTE_HANDLER)
|
||||
{
|
||||
|
|
|
@ -3055,10 +3055,7 @@ LRESULT WINAPI ListBoxWndProc_common( HWND hwnd, UINT msg,
|
|||
return LB_OKAY;
|
||||
|
||||
case LB_GETLISTBOXINFO:
|
||||
if (descr->style & LBS_MULTICOLUMN) //// ReactOS
|
||||
return descr->page_size * descr->column_width;
|
||||
else
|
||||
return descr->page_size;
|
||||
return descr->page_size;
|
||||
|
||||
case WM_DESTROY:
|
||||
return LISTBOX_Destroy( descr );
|
||||
|
|
Loading…
Reference in a new issue