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
891e3d17
Commit
891e3d17
authored
Mar 05, 2008
by
Francois Gouget
Committed by
Alexandre Julliard
Mar 05, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
comctl32/tests: Don't use 0xaa to avoid any confusion when running with +heap.
parent
9381f226
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
11 deletions
+11
-11
listview.c
dlls/comctl32/tests/listview.c
+11
-11
No files found.
dlls/comctl32/tests/listview.c
View file @
891e3d17
...
...
@@ -547,7 +547,7 @@ static void insert_column(HWND hwnd, int idx)
LVCOLUMN
column
;
DWORD
rc
;
memset
(
&
column
,
0x
aa
,
sizeof
(
column
));
memset
(
&
column
,
0x
cc
,
sizeof
(
column
));
column
.
mask
=
LVCF_SUBITEM
;
column
.
iSubItem
=
idx
;
...
...
@@ -562,7 +562,7 @@ static void insert_item(HWND hwnd, int idx)
LVITEMA
item
;
DWORD
rc
;
memset
(
&
item
,
0x
aa
,
sizeof
(
item
));
memset
(
&
item
,
0x
cc
,
sizeof
(
item
));
item
.
mask
=
LVIF_TEXT
;
item
.
iItem
=
idx
;
item
.
iSubItem
=
0
;
...
...
@@ -593,7 +593,7 @@ static void test_items(void)
insert_column
(
hwnd
,
1
);
/* Insert an item with just a param */
memset
(
&
item
,
0x
aa
,
sizeof
(
item
));
memset
(
&
item
,
0x
cc
,
sizeof
(
item
));
item
.
mask
=
LVIF_PARAM
;
item
.
iItem
=
0
;
item
.
iSubItem
=
0
;
...
...
@@ -602,7 +602,7 @@ static void test_items(void)
ok
(
r
==
0
,
"ret %d
\n
"
,
r
);
/* Test getting of the param */
memset
(
&
item
,
0x
aa
,
sizeof
(
item
));
memset
(
&
item
,
0x
cc
,
sizeof
(
item
));
item
.
mask
=
LVIF_PARAM
;
item
.
iItem
=
0
;
item
.
iSubItem
=
0
;
...
...
@@ -611,7 +611,7 @@ static void test_items(void)
ok
(
item
.
lParam
==
lparamTest
,
"got lParam %lx, expected %lx
\n
"
,
item
.
lParam
,
lparamTest
);
/* Set up a subitem */
memset
(
&
item
,
0x
aa
,
sizeof
(
item
));
memset
(
&
item
,
0x
cc
,
sizeof
(
item
));
item
.
mask
=
LVIF_TEXT
;
item
.
iItem
=
0
;
item
.
iSubItem
=
1
;
...
...
@@ -620,7 +620,7 @@ static void test_items(void)
ok
(
r
!=
0
,
"ret %d
\n
"
,
r
);
/* Query param from subitem: returns main item param */
memset
(
&
item
,
0x
aa
,
sizeof
(
item
));
memset
(
&
item
,
0x
cc
,
sizeof
(
item
));
item
.
mask
=
LVIF_PARAM
;
item
.
iItem
=
0
;
item
.
iSubItem
=
1
;
...
...
@@ -629,7 +629,7 @@ static void test_items(void)
ok
(
item
.
lParam
==
lparamTest
,
"got lParam %lx, expected %lx
\n
"
,
item
.
lParam
,
lparamTest
);
/* Set up param on first subitem: no effect */
memset
(
&
item
,
0x
aa
,
sizeof
(
item
));
memset
(
&
item
,
0x
cc
,
sizeof
(
item
));
item
.
mask
=
LVIF_PARAM
;
item
.
iItem
=
0
;
item
.
iSubItem
=
1
;
...
...
@@ -638,7 +638,7 @@ static void test_items(void)
ok
(
r
==
0
,
"ret %d
\n
"
,
r
);
/* Query param from subitem again: should still return main item param */
memset
(
&
item
,
0x
aa
,
sizeof
(
item
));
memset
(
&
item
,
0x
cc
,
sizeof
(
item
));
item
.
mask
=
LVIF_PARAM
;
item
.
iItem
=
0
;
item
.
iSubItem
=
1
;
...
...
@@ -647,7 +647,7 @@ static void test_items(void)
ok
(
item
.
lParam
==
lparamTest
,
"got lParam %lx, expected %lx
\n
"
,
item
.
lParam
,
lparamTest
);
/**** Some tests of state highlighting ****/
memset
(
&
item
,
0x
aa
,
sizeof
(
item
));
memset
(
&
item
,
0x
cc
,
sizeof
(
item
));
item
.
mask
=
LVIF_STATE
;
item
.
iItem
=
0
;
item
.
iSubItem
=
0
;
...
...
@@ -660,7 +660,7 @@ static void test_items(void)
r
=
SendMessage
(
hwnd
,
LVM_SETITEM
,
0
,
(
LPARAM
)
&
item
);
ok
(
r
!=
0
,
"ret %d
\n
"
,
r
);
memset
(
&
item
,
0x
aa
,
sizeof
(
item
));
memset
(
&
item
,
0x
cc
,
sizeof
(
item
));
item
.
mask
=
LVIF_STATE
;
item
.
iItem
=
0
;
item
.
iSubItem
=
0
;
...
...
@@ -687,7 +687,7 @@ static void test_columns(void)
ok
(
hwnd
!=
NULL
,
"failed to create listview window
\n
"
);
/* Add a column with no mask */
memset
(
&
column
,
0x
aa
,
sizeof
(
column
));
memset
(
&
column
,
0x
cc
,
sizeof
(
column
));
column
.
mask
=
0
;
rc
=
ListView_InsertColumn
(
hwnd
,
0
,
&
column
);
ok
(
rc
==
0
,
"Inserting column with no mask failed with %d
\n
"
,
rc
);
...
...
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