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
26b2e898
Commit
26b2e898
authored
Apr 08, 2003
by
Rein Klazes
Committed by
Alexandre Julliard
Apr 08, 2003
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Compare the two items in LISTBOX_FindStringPos() in the same order as
in Windows.
parent
5803dc3b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
6 deletions
+8
-6
listbox.c
controls/listbox.c
+8
-6
No files found.
controls/listbox.c
View file @
26b2e898
...
...
@@ -810,7 +810,7 @@ static INT LISTBOX_FindStringPos( HWND hwnd, LB_DESCR *descr, LPCWSTR str,
{
index
=
(
min
+
max
)
/
2
;
if
(
HAS_STRINGS
(
descr
))
res
=
lstrcmpiW
(
descr
->
items
[
index
].
str
,
str
);
res
=
lstrcmpiW
(
str
,
descr
->
items
[
index
].
str
);
else
{
COMPAREITEMSTRUCT
cis
;
...
...
@@ -819,15 +819,17 @@ static INT LISTBOX_FindStringPos( HWND hwnd, LB_DESCR *descr, LPCWSTR str,
cis
.
CtlType
=
ODT_LISTBOX
;
cis
.
CtlID
=
id
;
cis
.
hwndItem
=
hwnd
;
cis
.
itemID1
=
index
;
cis
.
itemData1
=
descr
->
items
[
index
].
data
;
cis
.
itemID2
=
-
1
;
cis
.
itemData2
=
(
DWORD
)
str
;
/* note that some application (MetaStock) expects the second item
* to be in the listbox */
cis
.
itemID1
=
-
1
;
cis
.
itemData1
=
(
DWORD
)
str
;
cis
.
itemID2
=
index
;
cis
.
itemData2
=
descr
->
items
[
index
].
data
;
cis
.
dwLocaleId
=
descr
->
locale
;
res
=
SendMessageW
(
descr
->
owner
,
WM_COMPAREITEM
,
id
,
(
LPARAM
)
&
cis
);
}
if
(
!
res
)
return
index
;
if
(
res
>
0
)
max
=
index
;
if
(
res
<
0
)
max
=
index
;
else
min
=
index
+
1
;
}
return
exact
?
-
1
:
max
;
...
...
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