From 592a81ab220d4a2a2756f8bb556ab12ca1e204e8 Mon Sep 17 00:00:00 2001 From: Dmitry Timoshkov Date: Wed, 2 Nov 2005 19:56:24 +0000 Subject: [PATCH] Avoid printing out a possibly uninitialized variable. --- dlls/comctl32/tab.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/dlls/comctl32/tab.c b/dlls/comctl32/tab.c index 91f37254921..e36ddf60ba4 100644 --- a/dlls/comctl32/tab.c +++ b/dlls/comctl32/tab.c @@ -1079,7 +1079,6 @@ static void TAB_SetItemBounds (TAB_INFO *infoPtr) HFONT hFont, hOldFont; HDC hdc; RECT clientRect; - SIZE size; INT iTemp; RECT* rcItem; INT iIndex; @@ -1192,6 +1191,7 @@ static void TAB_SetItemBounds (TAB_INFO *infoPtr) else { int tabwidth; + SIZE size; /* Calculate how wide the tab is depending on the text it contains */ GetTextExtentPoint32W(hdc, curr->pszText, lstrlenW(curr->pszText), &size); @@ -1231,7 +1231,6 @@ static void TAB_SetItemBounds (TAB_INFO *infoPtr) curr->rect.bottom = 0; curr->rect.top = curItemRowCount - 1; - TRACE("TextSize: %li\n", size.cx); TRACE("Rect: T %li, L %li, B %li, R %li\n", curr->rect.top, curr->rect.left, curr->rect.bottom, curr->rect.right);