Dmitry Timoshkov : user32: Invalidate a being removed listbox item before deleting it as it' s been done before d2ecb1194102b6d7e6078556f80e58c70ca39c23.

Alexandre Julliard julliard at winehq.org
Tue May 19 09:23:05 CDT 2009


Module: wine
Branch: master
Commit: c293a535c05d5963a9095929e55a0658d342b1ea
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=c293a535c05d5963a9095929e55a0658d342b1ea

Author: Dmitry Timoshkov <dmitry at codeweavers.com>
Date:   Tue May 19 15:00:21 2009 +0900

user32: Invalidate a being removed listbox item before deleting it as it's been done before d2ecb1194102b6d7e6078556f80e58c70ca39c23.

---

 dlls/user32/listbox.c |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/dlls/user32/listbox.c b/dlls/user32/listbox.c
index eaa805b..15aadcb 100644
--- a/dlls/user32/listbox.c
+++ b/dlls/user32/listbox.c
@@ -1725,14 +1725,14 @@ static LRESULT LISTBOX_RemoveItem( LB_DESCR *descr, INT index )
 
     if ((index < 0) || (index >= descr->nb_items)) return LB_ERR;
 
+    /* We need to invalidate the original rect instead of the updated one. */
+    LISTBOX_InvalidateItems( descr, index );
+
     descr->nb_items--;
     LISTBOX_DeleteItem( descr, index );
 
     if (!descr->nb_items) return LB_OKAY;
 
-    /* We need to invalidate the original rect instead of the updated one. */
-    LISTBOX_InvalidateItems( descr, index );
-
     /* Remove the item */
 
     item = &descr->items[index];




More information about the wine-cvs mailing list