[NTUSER][COMCTL32] Fix garbage displayed at bottom of listbox.c (#8316)

CORE-20062
@I_Kill_Bugs fix for rect.bottom in LISTBOX_Paint function.
This commit is contained in:
Doug Lyons
2025-08-20 11:34:44 -05:00
committed by GitHub
parent 1a61f50ddd
commit 8e6fbe0c90
2 changed files with 6 additions and 2 deletions

View File

@@ -1129,7 +1129,9 @@ static LRESULT LISTBOX_Paint( LB_DESCR *descr, HDC hdc )
/* keep the focus rect, to paint the focus item after */
if (i == descr->focus_item)
focusRect = rect;
#ifdef __REACTOS__
rect.bottom = min(rect.bottom, descr->height);
#endif
LISTBOX_PaintItem( descr, hdc, &rect, i, ODA_DRAWENTIRE, TRUE );
rect.top = rect.bottom;