[PATCH] user32: Simplify if-else statement.
Alex Henrie
alexhenrie24 at gmail.com
Thu Jul 16 02:05:25 CDT 2015
---
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 612c6b6..2902ac9 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;
--
2.4.5
More information about the wine-patches
mailing list