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
253edf0f
Commit
253edf0f
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: Get rid of useless helper.
parent
7d748b6b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
11 deletions
+3
-11
comboex.c
dlls/comctl32/comboex.c
+3
-11
No files found.
dlls/comctl32/comboex.c
View file @
253edf0f
...
...
@@ -484,13 +484,6 @@ static CBE_ITEMDATA * COMBOEX_FindItem(const COMBOEX_INFO *infoPtr, INT_PTR inde
return
item
;
}
static
inline
BOOL
COMBOEX_HasEdit
(
COMBOEX_INFO
const
*
infoPtr
)
{
return
infoPtr
->
hwndEdit
?
TRUE
:
FALSE
;
}
/* *** CBEM_xxx message support *** */
static
UINT
COMBOEX_GetListboxText
(
const
COMBOEX_INFO
*
infoPtr
,
INT_PTR
n
,
LPWSTR
buf
)
...
...
@@ -557,7 +550,7 @@ static BOOL COMBOEX_GetItemW (const COMBOEX_INFO *infoPtr, COMBOBOXEXITEMW *cit)
if
((
index
>=
infoPtr
->
nb_items
)
||
(
index
<
-
1
))
return
FALSE
;
/* if the item is the edit control and there is no edit control, skip */
if
((
index
==
-
1
)
&&
!
COMBOEX_HasEdit
(
infoPtr
)
)
return
FALSE
;
if
((
index
==
-
1
)
&&
!
infoPtr
->
hwndEdit
)
return
FALSE
;
if
(
!
(
item
=
COMBOEX_FindItem
(
infoPtr
,
index
)))
return
FALSE
;
...
...
@@ -604,8 +597,7 @@ static BOOL COMBOEX_GetItemA (const COMBOEX_INFO *infoPtr, COMBOBOXEXITEMA *cit)
static
inline
BOOL
COMBOEX_HasEditChanged
(
COMBOEX_INFO
const
*
infoPtr
)
{
return
COMBOEX_HasEdit
(
infoPtr
)
&&
(
infoPtr
->
flags
&
WCBE_EDITHASCHANGED
)
==
WCBE_EDITHASCHANGED
;
return
infoPtr
->
hwndEdit
&&
(
infoPtr
->
flags
&
WCBE_EDITHASCHANGED
)
==
WCBE_EDITHASCHANGED
;
}
...
...
@@ -778,7 +770,7 @@ static BOOL COMBOEX_SetItemW (const COMBOEX_INFO *infoPtr, COMBOBOXEXITEMW *cit)
if
((
index
>=
infoPtr
->
nb_items
)
||
(
index
<
-
1
))
return
FALSE
;
/* if the item is the edit control and there is no edit control, skip */
if
((
index
==
-
1
)
&&
!
COMBOEX_HasEdit
(
infoPtr
)
)
return
FALSE
;
if
((
index
==
-
1
)
&&
!
infoPtr
->
hwndEdit
)
return
FALSE
;
if
(
!
(
item
=
COMBOEX_FindItem
(
infoPtr
,
index
)))
return
FALSE
;
...
...
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