Commit 592a81ab authored by Dmitry Timoshkov's avatar Dmitry Timoshkov Committed by Alexandre Julliard

Avoid printing out a possibly uninitialized variable.

parent d148ca4e
...@@ -1079,7 +1079,6 @@ static void TAB_SetItemBounds (TAB_INFO *infoPtr) ...@@ -1079,7 +1079,6 @@ static void TAB_SetItemBounds (TAB_INFO *infoPtr)
HFONT hFont, hOldFont; HFONT hFont, hOldFont;
HDC hdc; HDC hdc;
RECT clientRect; RECT clientRect;
SIZE size;
INT iTemp; INT iTemp;
RECT* rcItem; RECT* rcItem;
INT iIndex; INT iIndex;
...@@ -1192,6 +1191,7 @@ static void TAB_SetItemBounds (TAB_INFO *infoPtr) ...@@ -1192,6 +1191,7 @@ static void TAB_SetItemBounds (TAB_INFO *infoPtr)
else else
{ {
int tabwidth; int tabwidth;
SIZE size;
/* Calculate how wide the tab is depending on the text it contains */ /* Calculate how wide the tab is depending on the text it contains */
GetTextExtentPoint32W(hdc, curr->pszText, GetTextExtentPoint32W(hdc, curr->pszText,
lstrlenW(curr->pszText), &size); lstrlenW(curr->pszText), &size);
...@@ -1231,7 +1231,6 @@ static void TAB_SetItemBounds (TAB_INFO *infoPtr) ...@@ -1231,7 +1231,6 @@ static void TAB_SetItemBounds (TAB_INFO *infoPtr)
curr->rect.bottom = 0; curr->rect.bottom = 0;
curr->rect.top = curItemRowCount - 1; 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, TRACE("Rect: T %li, L %li, B %li, R %li\n", curr->rect.top,
curr->rect.left, curr->rect.bottom, curr->rect.right); curr->rect.left, curr->rect.bottom, curr->rect.right);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment