comctl32: Invalidate before item is removed.

This commit is contained in:
Nikolay Sivov 2012-02-08 12:05:45 +03:00 committed by Alexandre Julliard
parent d967484ecc
commit b32b969eb6
1 changed files with 1 additions and 2 deletions

View File

@ -2879,14 +2879,13 @@ static LRESULT TAB_DeleteItem (TAB_INFO *infoPtr, INT iItem)
if (iItem < 0 || iItem >= infoPtr->uNumItem) return FALSE;
TAB_InvalidateTabArea(infoPtr);
item = TAB_GetItem(infoPtr, iItem);
Free(item->pszText);
Free(item);
infoPtr->uNumItem--;
DPA_DeletePtr(infoPtr->items, iItem);
TAB_InvalidateTabArea(infoPtr);
if (infoPtr->uNumItem == 0)
{
if (infoPtr->iHotTracked >= 0)