Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
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-winehq
Commits
6f05fd2d
Commit
6f05fd2d
authored
Oct 09, 2009
by
Nikolay Sivov
Committed by
Alexandre Julliard
Oct 12, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
comctl32/tab: Remove dead parameter check code.
parent
b0952c95
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
11 deletions
+5
-11
tab.c
dlls/comctl32/tab.c
+5
-11
No files found.
dlls/comctl32/tab.c
View file @
6f05fd2d
...
...
@@ -2722,9 +2722,9 @@ TAB_HighlightItem (TAB_INFO *infoPtr, INT iItem, BOOL fHighlight)
TRACE
(
"(%p,%d,%s)
\n
"
,
infoPtr
,
iItem
,
fHighlight
?
"true"
:
"false"
);
if
(
!
infoPtr
||
iItem
<
0
||
iItem
>=
infoPtr
->
uNumItem
)
if
(
iItem
<
0
||
iItem
>=
infoPtr
->
uNumItem
)
return
FALSE
;
lpState
=
&
TAB_GetItem
(
infoPtr
,
iItem
)
->
dwState
;
oldState
=
*
lpState
;
...
...
@@ -3100,9 +3100,6 @@ TAB_Destroy (TAB_INFO *infoPtr)
{
UINT
iItem
;
if
(
!
infoPtr
)
return
0
;
SetWindowLongPtrW
(
infoPtr
->
hwnd
,
0
,
0
);
if
(
infoPtr
->
items
)
{
...
...
@@ -3122,7 +3119,7 @@ TAB_Destroy (TAB_INFO *infoPtr)
KillTimer
(
infoPtr
->
hwnd
,
TAB_HOTTRACK_TIMER
);
CloseThemeData
(
GetWindowTheme
(
infoPtr
->
hwnd
));
Free
(
infoPtr
);
return
0
;
}
...
...
@@ -3146,7 +3143,7 @@ static LRESULT TAB_NCCalcSize(WPARAM wParam)
static
inline
LRESULT
TAB_SetItemExtra
(
TAB_INFO
*
infoPtr
,
INT
cbInfo
)
{
if
(
!
infoPtr
||
cbInfo
<=
0
)
if
(
cbInfo
<=
0
)
return
FALSE
;
if
(
infoPtr
->
uNumItem
)
...
...
@@ -3161,9 +3158,6 @@ TAB_SetItemExtra (TAB_INFO *infoPtr, INT cbInfo)
static
LRESULT
TAB_RemoveImage
(
TAB_INFO
*
infoPtr
,
INT
image
)
{
if
(
!
infoPtr
)
return
0
;
if
(
ImageList_Remove
(
infoPtr
->
himl
,
image
))
{
INT
i
,
*
idx
;
...
...
@@ -3334,7 +3328,7 @@ TAB_WindowProc (HWND hwnd, UINT uMsg, WPARAM wParam, LPARAM lParam)
return
TAB_InsertItemT
(
infoPtr
,
wParam
,
lParam
,
uMsg
==
TCM_INSERTITEMW
);
case
TCM_SETITEMEXTRA
:
return
TAB_SetItemExtra
(
infoPtr
,
(
int
)
wParam
);
return
TAB_SetItemExtra
(
infoPtr
,
(
INT
)
wParam
);
case
TCM_ADJUSTRECT
:
return
TAB_AdjustRect
(
infoPtr
,
(
BOOL
)
wParam
,
(
LPRECT
)
lParam
);
...
...
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