Don't update scrollbars when processing WM_DESTROY.
diff --git a/controls/listbox.c b/controls/listbox.c
index 91624bc..0959e2a 100644
--- a/controls/listbox.c
+++ b/controls/listbox.c
@@ -1620,8 +1620,6 @@
descr->focus_item = 0;
descr->anchor_item = -1;
descr->items = NULL;
- LISTBOX_UpdateScroll( wnd, descr );
- InvalidateRect( wnd->hwndSelf, NULL, TRUE );
}
@@ -2458,6 +2456,8 @@
case LB_RESETCONTENT16:
case LB_RESETCONTENT:
LISTBOX_ResetContent( wnd, descr );
+ LISTBOX_UpdateScroll( wnd, descr );
+ InvalidateRect( wnd->hwndSelf, NULL, TRUE );
return 0;
case LB_ADDSTRING16: