comctl32: tab: update the item mask after a TB_SETITEM (fixes bug #7345)

Mikołaj Zalewski mikolaj at zalewski.pl
Tue Feb 6 16:14:57 CST 2007


Tab uses a mask to mark which fields are set but it new fields were set 
by SetItem the mask wasn't updated.
-------------- next part --------------
From de87f6802af0a6b1a4d01dfe2ad42f25e7d7efda Mon Sep 17 00:00:00 2001
From: =?utf-8?q?Miko=C5=82aj_Zalewski?= <mikolaj at zalewski.pl>
Date: Tue, 6 Feb 2007 23:03:25 +0100
Subject: [PATCH] comctl32: tab: update the item mask after a TB_SETITEM (fixes bug #7345)

---
 dlls/comctl32/tab.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/dlls/comctl32/tab.c b/dlls/comctl32/tab.c
index d17f6a7..a842c06 100644
--- a/dlls/comctl32/tab.c
+++ b/dlls/comctl32/tab.c
@@ -2781,6 +2781,8 @@ TAB_SetItemT (TAB_INFO *infoPtr, INT iItem, LPTCITEMW tabItem, BOOL bUnicode)
     else
       Str_SetPtrAtoW(&wineItem->pszText, (LPSTR)tabItem->pszText);
   }
+  
+  wineItem->mask |= tabItem->mask;
 
   /* Update and repaint tabs */
   TAB_SetItemBounds(infoPtr);
-- 
1.4.4.2


More information about the wine-patches mailing list