Module: wine Branch: master Commit: f6125536948201ee380a44edc0b87a29b0a55af3 URL: http://source.winehq.org/git/wine.git/?a=commit;h=f6125536948201ee380a44edc0... Author: Alex Henrie <alexhenrie24(a)gmail.com> Date: Thu Jul 16 01:05:25 2015 -0600 user32: Simplify if-else statement. --- dlls/user32/listbox.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/dlls/user32/listbox.c b/dlls/user32/listbox.c index 4853c3f..ed60a19 100644 --- a/dlls/user32/listbox.c +++ b/dlls/user32/listbox.c @@ -319,7 +319,8 @@ static LRESULT LISTBOX_SetTopItem( LB_DESCR *descr, INT index, BOOL scroll ) ScrollWindowEx( descr->self, 0, diff, NULL, NULL, 0, NULL, SW_INVALIDATE | SW_ERASE | SW_SCROLLCHILDREN ); } - if (!scroll) InvalidateRect( descr->self, NULL, TRUE ); + else + InvalidateRect( descr->self, NULL, TRUE ); descr->top_item = index; LISTBOX_UpdateScroll( descr ); return LB_OKAY;