Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-cw
Commits
592a81ab
Commit
592a81ab
authored
Nov 02, 2005
by
Dmitry Timoshkov
Committed by
Alexandre Julliard
Nov 02, 2005
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Avoid printing out a possibly uninitialized variable.
parent
d148ca4e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
2 deletions
+1
-2
tab.c
dlls/comctl32/tab.c
+1
-2
No files found.
dlls/comctl32/tab.c
View file @
592a81ab
...
@@ -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
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment