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
8ef79b02
Commit
8ef79b02
authored
May 09, 2017
by
Nikolay Sivov
Committed by
Alexandre Julliard
May 09, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
comctl32/listview: Convert item text once when looking for insertion point.
Signed-off-by:
Nikolay Sivov
<
nsivov@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
d3d8d4f3
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
1 deletion
+7
-1
listview.c
dlls/comctl32/listview.c
+7
-1
No files found.
dlls/comctl32/listview.c
View file @
8ef79b02
...
...
@@ -7824,18 +7824,24 @@ static INT LISTVIEW_InsertItemT(LISTVIEW_INFO *infoPtr, const LVITEMW *lpLVItem,
HDPA
hItem
;
ITEM_INFO
*
item_s
;
INT
i
=
0
,
cmpv
;
WCHAR
*
textW
;
textW
=
textdupTtoW
(
lpLVItem
->
pszText
,
isW
);
while
(
i
<
infoPtr
->
nItemCount
)
{
hItem
=
DPA_GetPtr
(
infoPtr
->
hdpaItems
,
i
);
item_s
=
DPA_GetPtr
(
hItem
,
0
);
cmpv
=
textcmpWT
(
item_s
->
hdr
.
pszText
,
lpLVItem
->
pszText
,
isW
);
cmpv
=
textcmpWT
(
item_s
->
hdr
.
pszText
,
textW
,
TRUE
);
if
(
infoPtr
->
dwStyle
&
LVS_SORTDESCENDING
)
cmpv
*=
-
1
;
if
(
cmpv
>=
0
)
break
;
i
++
;
}
textfreeT
(
textW
,
isW
);
nItem
=
i
;
}
else
...
...
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