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
bede13b3
Commit
bede13b3
authored
Jun 20, 2012
by
Francois Gouget
Committed by
Alexandre Julliard
Jun 20, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
comctl32: Fix lstrncmpiW() so its return value is standard and use the CSTR_XXX macros.
parent
58d70111
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
4 deletions
+1
-4
listview.c
dlls/comctl32/listview.c
+1
-4
No files found.
dlls/comctl32/listview.c
View file @
bede13b3
...
@@ -559,11 +559,8 @@ static inline int textcmpWT(LPCWSTR aw, LPCWSTR bt, BOOL isW)
...
@@ -559,11 +559,8 @@ static inline int textcmpWT(LPCWSTR aw, LPCWSTR bt, BOOL isW)
static
inline
int
lstrncmpiW
(
LPCWSTR
s1
,
LPCWSTR
s2
,
int
n
)
static
inline
int
lstrncmpiW
(
LPCWSTR
s1
,
LPCWSTR
s2
,
int
n
)
{
{
int
res
;
n
=
min
(
min
(
n
,
lstrlenW
(
s1
)),
lstrlenW
(
s2
));
n
=
min
(
min
(
n
,
lstrlenW
(
s1
)),
lstrlenW
(
s2
));
res
=
CompareStringW
(
LOCALE_USER_DEFAULT
,
NORM_IGNORECASE
,
s1
,
n
,
s2
,
n
);
return
CompareStringW
(
LOCALE_USER_DEFAULT
,
NORM_IGNORECASE
,
s1
,
n
,
s2
,
n
)
-
CSTR_EQUAL
;
return
res
?
res
-
sizeof
(
WCHAR
)
:
res
;
}
}
/******** Debugging functions *****************************************/
/******** Debugging functions *****************************************/
...
...
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