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
758f7992
Commit
758f7992
authored
Oct 25, 2008
by
Michael Stefaniuc
Committed by
Alexandre Julliard
Oct 27, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
comctl32: Just use 0 instead of casting NULL twice to an integer type.
parent
9cafb9c1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
treeview.c
dlls/comctl32/treeview.c
+5
-5
No files found.
dlls/comctl32/treeview.c
View file @
758f7992
...
...
@@ -1220,7 +1220,7 @@ TREEVIEW_InsertItemT(TREEVIEW_INFO *infoPtr, const TVINSERTSTRUCTW *ptdi, BOOL i
if
(
!
TREEVIEW_ValidItem
(
infoPtr
,
parentItem
))
{
WARN
(
"invalid parent %p
\n
"
,
parentItem
);
return
(
LRESULT
)(
HTREEITEM
)
NULL
;
return
0
;
}
}
...
...
@@ -1251,13 +1251,13 @@ TREEVIEW_InsertItemT(TREEVIEW_INFO *infoPtr, const TVINSERTSTRUCTW *ptdi, BOOL i
newItem
=
TREEVIEW_AllocateItem
(
infoPtr
);
if
(
newItem
==
NULL
)
return
(
LRESULT
)(
HTREEITEM
)
NULL
;
return
0
;
newItem
->
parent
=
parentItem
;
newItem
->
iIntegral
=
1
;
if
(
!
TREEVIEW_DoSetItemT
(
infoPtr
,
newItem
,
tvItem
,
isW
))
return
(
LRESULT
)(
HTREEITEM
)
NULL
;
return
0
;
/* After this point, nothing can fail. (Except for TVI_SORT.) */
...
...
@@ -3461,14 +3461,14 @@ TREEVIEW_HitTest(const TREEVIEW_INFO *infoPtr, LPTVHITTESTINFO lpht)
if
(
status
)
{
lpht
->
flags
=
status
;
return
(
LRESULT
)(
HTREEITEM
)
NULL
;
return
0
;
}
wineItem
=
TREEVIEW_HitTestPoint
(
infoPtr
,
lpht
->
pt
);
if
(
!
wineItem
)
{
lpht
->
flags
=
TVHT_NOWHERE
;
return
(
LRESULT
)(
HTREEITEM
)
NULL
;
return
0
;
}
if
(
x
>=
wineItem
->
textOffset
+
wineItem
->
textWidth
)
...
...
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