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
a980fa0d
Commit
a980fa0d
authored
May 24, 2022
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
kernelbase: Don't ignore the specified locale in CompareStringW.
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
2dced178
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
25 additions
and
1 deletion
+25
-1
locale.c
dlls/kernelbase/locale.c
+25
-1
No files found.
dlls/kernelbase/locale.c
View file @
a980fa0d
...
...
@@ -4033,7 +4033,31 @@ INT WINAPI DECLSPEC_HOTPATCH CompareStringA( LCID lcid, DWORD flags, const char
INT
WINAPI
DECLSPEC_HOTPATCH
CompareStringW
(
LCID
lcid
,
DWORD
flags
,
const
WCHAR
*
str1
,
int
len1
,
const
WCHAR
*
str2
,
int
len2
)
{
return
CompareStringEx
(
NULL
,
flags
,
str1
,
len1
,
str2
,
len2
,
NULL
,
NULL
,
0
);
const
WCHAR
*
locale
=
LOCALE_NAME_USER_DEFAULT
;
const
NLS_LOCALE_LCID_INDEX
*
entry
;
switch
(
lcid
)
{
case
LOCALE_NEUTRAL
:
case
LOCALE_USER_DEFAULT
:
case
LOCALE_SYSTEM_DEFAULT
:
case
LOCALE_CUSTOM_DEFAULT
:
case
LOCALE_CUSTOM_UNSPECIFIED
:
case
LOCALE_CUSTOM_UI_DEFAULT
:
break
;
default:
if
(
lcid
==
user_lcid
||
lcid
==
system_lcid
)
break
;
if
(
!
(
entry
=
find_lcid_entry
(
lcid
)))
{
WARN
(
"unknown locale %04lx
\n
"
,
lcid
);
SetLastError
(
ERROR_INVALID_PARAMETER
);
return
0
;
}
locale
=
locale_strings
+
entry
->
name
+
1
;
break
;
}
return
CompareStringEx
(
locale
,
flags
,
str1
,
len1
,
str2
,
len2
,
NULL
,
NULL
,
0
);
}
...
...
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