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
93d45253
Commit
93d45253
authored
Dec 20, 2009
by
Michael Stefaniuc
Committed by
Alexandre Julliard
Dec 21, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
comctl32/tests: Don't cast NULL to an integer type.
parent
a29bbda1
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
6 deletions
+6
-6
header.c
dlls/comctl32/tests/header.c
+1
-1
listview.c
dlls/comctl32/tests/listview.c
+2
-2
treeview.c
dlls/comctl32/tests/treeview.c
+3
-3
No files found.
dlls/comctl32/tests/header.c
View file @
93d45253
...
...
@@ -1756,7 +1756,7 @@ static void test_hdm_orderarray(void)
if
(
0
)
{
/* null pointer, crashes native */
ret
=
SendMessage
(
hwnd
,
HDM_SETORDERARRAY
,
3
,
(
LPARAM
)
NULL
);
ret
=
SendMessage
(
hwnd
,
HDM_SETORDERARRAY
,
3
,
0
);
expect
(
FALSE
,
ret
);
}
/* count out of limits */
...
...
dlls/comctl32/tests/listview.c
View file @
93d45253
...
...
@@ -1945,7 +1945,7 @@ static void test_multiselect(void)
expect
(
items
,
item_count
);
/* try with NULL pointer */
r
=
SendMessageA
(
hwnd
,
LVM_SETITEMSTATE
,
0
,
(
LPARAM
)
NULL
);
r
=
SendMessageA
(
hwnd
,
LVM_SETITEMSTATE
,
0
,
0
);
expect
(
FALSE
,
r
);
/* select all, check notifications */
...
...
@@ -2979,7 +2979,7 @@ static void test_hittest(void)
y
=
(
bounds
.
bottom
-
bounds
.
top
)
/
2
;
test_lvm_subitemhittest
(
hwnd
,
x
,
y
,
0
,
0
,
LVHT_ONITEMSTATEICON
,
FALSE
,
FALSE
,
FALSE
,
__LINE__
);
himl2
=
(
HIMAGELIST
)
SendMessage
(
hwnd
,
LVM_SETIMAGELIST
,
LVSIL_STATE
,
(
LPARAM
)
NULL
);
himl2
=
(
HIMAGELIST
)
SendMessage
(
hwnd
,
LVM_SETIMAGELIST
,
LVSIL_STATE
,
0
);
ok
(
himl2
==
himl
,
"should return handle
\n
"
);
r
=
SendMessage
(
hwnd
,
LVM_SETIMAGELIST
,
LVSIL_SMALL
,
(
LPARAM
)
himl
);
...
...
dlls/comctl32/tests/treeview.c
View file @
93d45253
...
...
@@ -924,7 +924,7 @@ static void test_itemedit(void)
fill_tree
(
hTree
);
/* try with null item */
edit
=
(
HWND
)
SendMessage
(
hTree
,
TVM_EDITLABEL
,
0
,
(
LPARAM
)
NULL
);
edit
=
(
HWND
)
SendMessage
(
hTree
,
TVM_EDITLABEL
,
0
,
0
);
ok
(
!
IsWindow
(
edit
),
"Expected valid handle
\n
"
);
/* trigger edit */
...
...
@@ -934,14 +934,14 @@ static void test_itemedit(void)
r
=
SendMessage
(
hTree
,
TVM_GETITEMSTATE
,
(
WPARAM
)
hRoot
,
TVIS_SELECTED
);
expect
(
0
,
r
);
/* try to cancel with wrong edit handle */
r
=
SendMessage
(
hTree
,
WM_COMMAND
,
MAKEWPARAM
(
0
,
EN_KILLFOCUS
),
(
LPARAM
)
NULL
);
r
=
SendMessage
(
hTree
,
WM_COMMAND
,
MAKEWPARAM
(
0
,
EN_KILLFOCUS
),
0
);
expect
(
0
,
r
);
ok
(
IsWindow
(
edit
),
"Expected edit control to be valid
\n
"
);
r
=
SendMessage
(
hTree
,
WM_COMMAND
,
MAKEWPARAM
(
0
,
EN_KILLFOCUS
),
(
LPARAM
)
edit
);
expect
(
0
,
r
);
ok
(
!
IsWindow
(
edit
),
"Expected edit control to be destroyed
\n
"
);
/* try to cancel without creating edit */
r
=
SendMessage
(
hTree
,
WM_COMMAND
,
MAKEWPARAM
(
0
,
EN_KILLFOCUS
),
(
LPARAM
)
NULL
);
r
=
SendMessage
(
hTree
,
WM_COMMAND
,
MAKEWPARAM
(
0
,
EN_KILLFOCUS
),
0
);
expect
(
0
,
r
);
/* try to cancel with wrong (not null) handle */
...
...
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