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
b6b98933
Commit
b6b98933
authored
Apr 12, 2021
by
Nikolay Sivov
Committed by
Alexandre Julliard
Apr 12, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
comctl32/tests: Remove unnecessary macro.
Signed-off-by:
Nikolay Sivov
<
nsivov@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
0bb8ddfd
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
7 deletions
+5
-7
combo.c
dlls/comctl32/tests/combo.c
+5
-7
No files found.
dlls/comctl32/tests/combo.c
View file @
b6b98933
...
...
@@ -37,8 +37,6 @@ enum message_seq_index
#define EDITBOX_ID 0
#define COMBO_ID 1995
#define expect(expected, got) ok(got == expected, "Expected %d, got %d\n", expected, got)
#define expect_rect(r, _left, _top, _right, _bottom) ok(r.left == _left && r.top == _top && \
r.bottom == _bottom && r.right == _right, "Invalid rect %s vs (%d,%d)-(%d,%d)\n", \
wine_dbgstr_rect(&r), _left, _top, _right, _bottom);
...
...
@@ -631,7 +629,7 @@ static void test_comboex_get_set_item(void)
char
textA
[]
=
"test"
;
HWND
hComboEx
;
COMBOBOXEXITEMA
item
;
BOOL
ret
;
DWORD
ret
;
hComboEx
=
createComboEx
(
WS_BORDER
|
WS_VISIBLE
|
WS_CHILD
|
CBS_DROPDOWN
);
...
...
@@ -644,7 +642,7 @@ static void test_comboex_get_set_item(void)
item
.
pszText
=
textA
;
item
.
iItem
=
-
1
;
ret
=
SendMessageA
(
hComboEx
,
CBEM_SETITEMA
,
0
,
(
LPARAM
)
&
item
);
expect
(
TRUE
,
ret
);
ok
(
ret
==
1
,
"Unexpected return value %d.
\n
"
,
ret
);
ok_sequence
(
sequences
,
EDITBOX_SEQ_INDEX
,
test_setitem_edit_seq
,
"set item data for edit"
,
FALSE
);
...
...
@@ -653,16 +651,16 @@ static void test_comboex_get_set_item(void)
item
.
iItem
=
-
1
;
item
.
lParam
=
0xdeadbeef
;
ret
=
SendMessageA
(
hComboEx
,
CBEM_GETITEMA
,
0
,
(
LPARAM
)
&
item
);
expect
(
TRUE
,
ret
);
ok
(
ret
==
1
,
"Unexpected return value %d.
\n
"
,
ret
);
ok
(
item
.
lParam
==
0
,
"Expected zero, got %lx
\n
"
,
item
.
lParam
);
item
.
lParam
=
0x1abe11ed
;
ret
=
SendMessageA
(
hComboEx
,
CBEM_SETITEMA
,
0
,
(
LPARAM
)
&
item
);
expect
(
TRUE
,
ret
);
ok
(
ret
==
1
,
"Unexpected return value %d.
\n
"
,
ret
);
item
.
lParam
=
0
;
ret
=
SendMessageA
(
hComboEx
,
CBEM_GETITEMA
,
0
,
(
LPARAM
)
&
item
);
expect
(
TRUE
,
ret
);
ok
(
ret
==
1
,
"Unexpected return value %d.
\n
"
,
ret
);
ok
(
item
.
lParam
==
0x1abe11ed
,
"Expected 0x1abe11ed, got %lx
\n
"
,
item
.
lParam
);
DestroyWindow
(
hComboEx
);
...
...
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