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
7deb2779
Commit
7deb2779
authored
Dec 23, 2009
by
Nikolay Sivov
Committed by
Alexandre Julliard
Dec 24, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
comctl32/comboex: Fix silly typo in CBEM_SETITEM handler (lParam wasn't set).
parent
96d965f2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
21 additions
and
2 deletions
+21
-2
comboex.c
dlls/comctl32/comboex.c
+1
-1
comboex.c
dlls/comctl32/tests/comboex.c
+20
-1
No files found.
dlls/comctl32/comboex.c
View file @
7deb2779
...
...
@@ -806,7 +806,7 @@ static BOOL COMBOEX_SetItemW (const COMBOEX_INFO *infoPtr, COMBOBOXEXITEMW *cit)
if
(
cit
->
mask
&
CBEIF_INDENT
)
item
->
iIndent
=
cit
->
iIndent
;
if
(
cit
->
mask
&
CBEIF_LPARAM
)
cit
->
lParam
=
cit
->
lParam
;
item
->
lParam
=
cit
->
lParam
;
if
(
TRACE_ON
(
comboex
))
COMBOEX_DumpItem
(
item
);
...
...
dlls/comctl32/tests/comboex.c
View file @
7deb2779
...
...
@@ -29,6 +29,8 @@
#define EDITBOX_ID 0
#define expect(expected, got) ok(got == expected, "Expected %d, got %d\n", expected, got)
static
struct
msg_sequence
*
sequences
[
NUM_MSG_SEQUENCES
];
static
HWND
hComboExParentWnd
;
...
...
@@ -491,10 +493,27 @@ static void test_get_set_item(void)
item
.
pszText
=
textA
;
item
.
iItem
=
-
1
;
ret
=
SendMessage
(
hComboEx
,
CBEM_SETITEMA
,
0
,
(
LPARAM
)
&
item
);
ok
(
ret
,
"CBEM_SETITEMA failed
\n
"
);
expect
(
TRUE
,
ret
);
ok_sequence
(
sequences
,
EDITBOX_SEQ_INDEX
,
test_setitem_edit_seq
,
"set item data for edit"
,
FALSE
);
/* get/set lParam */
item
.
mask
=
CBEIF_LPARAM
;
item
.
iItem
=
-
1
;
item
.
lParam
=
0xdeadbeef
;
ret
=
SendMessage
(
hComboEx
,
CBEM_GETITEMA
,
0
,
(
LPARAM
)
&
item
);
expect
(
TRUE
,
ret
);
ok
(
item
.
lParam
==
0
,
"Expected zero, got %ld
\n
"
,
item
.
lParam
);
item
.
lParam
=
0xdeadbeef
;
ret
=
SendMessage
(
hComboEx
,
CBEM_SETITEMA
,
0
,
(
LPARAM
)
&
item
);
expect
(
TRUE
,
ret
);
item
.
lParam
=
0
;
ret
=
SendMessage
(
hComboEx
,
CBEM_GETITEMA
,
0
,
(
LPARAM
)
&
item
);
expect
(
TRUE
,
ret
);
ok
(
item
.
lParam
==
0xdeadbeef
,
"Expected 0xdeadbeef, got %ld
\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