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
2d097f70
Commit
2d097f70
authored
Jan 04, 2007
by
Mike McCormack
Committed by
Alexandre Julliard
Jan 04, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
comctl32: Remove unnecessary casts.
parent
60d6518c
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
7 deletions
+7
-7
listview.c
dlls/comctl32/listview.c
+7
-7
No files found.
dlls/comctl32/listview.c
View file @
2d097f70
...
...
@@ -2578,7 +2578,7 @@ static void ranges_assert(RANGES ranges, LPCSTR desc, const char *func, int line
static
RANGES
ranges_create
(
int
count
)
{
RANGES
ranges
=
(
RANGES
)
Alloc
(
sizeof
(
struct
tagRANGES
));
RANGES
ranges
=
Alloc
(
sizeof
(
struct
tagRANGES
));
if
(
!
ranges
)
return
NULL
;
ranges
->
hdpa
=
DPA_Create
(
count
);
if
(
ranges
->
hdpa
)
return
ranges
;
...
...
@@ -2613,7 +2613,7 @@ static RANGES ranges_clone(RANGES ranges)
for
(
i
=
0
;
i
<
DPA_GetPtrCount
(
ranges
->
hdpa
);
i
++
)
{
RANGE
*
newrng
=
(
RANGE
*
)
Alloc
(
sizeof
(
RANGE
));
RANGE
*
newrng
=
Alloc
(
sizeof
(
RANGE
));
if
(
!
newrng
)
goto
fail
;
*
newrng
=
*
((
RANGE
*
)
DPA_GetPtr
(
ranges
->
hdpa
,
i
));
DPA_SetPtr
(
clone
->
hdpa
,
i
,
newrng
);
...
...
@@ -2705,7 +2705,7 @@ static BOOL ranges_add(RANGES ranges, RANGE range)
TRACE
(
"Adding new range
\n
"
);
/* create the brand new range to insert */
newrgn
=
(
RANGE
*
)
Alloc
(
sizeof
(
RANGE
));
newrgn
=
Alloc
(
sizeof
(
RANGE
));
if
(
!
newrgn
)
goto
fail
;
*
newrgn
=
range
;
...
...
@@ -2816,7 +2816,7 @@ static BOOL ranges_del(RANGES ranges, RANGE range)
{
RANGE
tmprgn
=
*
chkrgn
,
*
newrgn
;
if
(
!
(
newrgn
=
(
RANGE
*
)
Alloc
(
sizeof
(
RANGE
))))
goto
fail
;
if
(
!
(
newrgn
=
Alloc
(
sizeof
(
RANGE
))))
goto
fail
;
newrgn
->
lower
=
chkrgn
->
lower
;
newrgn
->
upper
=
range
.
lower
;
chkrgn
->
lower
=
range
.
upper
;
...
...
@@ -3519,7 +3519,7 @@ static BOOL set_sub_item(LISTVIEW_INFO *infoPtr, const LVITEMW *lpLVItem, BOOL i
SUBITEM_INFO
*
tmpSubItem
;
INT
i
;
lpSubItem
=
(
SUBITEM_INFO
*
)
Alloc
(
sizeof
(
SUBITEM_INFO
));
lpSubItem
=
Alloc
(
sizeof
(
SUBITEM_INFO
));
if
(
!
lpSubItem
)
return
FALSE
;
/* we could binary search here, if need be...*/
for
(
i
=
1
;
i
<
DPA_GetPtrCount
(
hdpaSubItems
);
i
++
)
...
...
@@ -6247,7 +6247,7 @@ static INT LISTVIEW_InsertItemT(LISTVIEW_INFO *infoPtr, const LVITEMW *lpLVItem,
if
(
!
is_assignable_item
(
lpLVItem
,
infoPtr
->
dwStyle
))
return
-
1
;
if
(
!
(
lpItem
=
(
ITEM_INFO
*
)
Alloc
(
sizeof
(
ITEM_INFO
))))
return
-
1
;
if
(
!
(
lpItem
=
Alloc
(
sizeof
(
ITEM_INFO
))))
return
-
1
;
/* insert item in listview control data structure */
if
(
!
(
hdpaSubItems
=
DPA_Create
(
8
))
)
goto
fail
;
...
...
@@ -7669,7 +7669,7 @@ static LRESULT LISTVIEW_Create(HWND hwnd, const CREATESTRUCTW *lpcs)
TRACE
(
"(lpcs=%p)
\n
"
,
lpcs
);
/* initialize info pointer */
infoPtr
=
(
LISTVIEW_INFO
*
)
Alloc
(
sizeof
(
LISTVIEW_INFO
));
infoPtr
=
Alloc
(
sizeof
(
LISTVIEW_INFO
));
if
(
!
infoPtr
)
return
-
1
;
SetWindowLongPtrW
(
hwnd
,
0
,
(
DWORD_PTR
)
infoPtr
);
...
...
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