Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
a406d538
Commit
a406d538
authored
Dec 18, 2012
by
Piotr Caban
Committed by
Alexandre Julliard
Dec 18, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
msvcrt: Fixed locale matching code.
parent
7afc98a7
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
3 deletions
+6
-3
locale.c
dlls/msvcrt/locale.c
+6
-3
No files found.
dlls/msvcrt/locale.c
View file @
a406d538
...
@@ -130,9 +130,12 @@ static int compare_info(LCID lcid, DWORD flags, char* buff, const char* cmp, BOO
...
@@ -130,9 +130,12 @@ static int compare_info(LCID lcid, DWORD flags, char* buff, const char* cmp, BOO
{
{
int
len
;
int
len
;
if
(
!
cmp
[
0
])
return
0
;
buff
[
0
]
=
0
;
buff
[
0
]
=
0
;
GetLocaleInfoA
(
lcid
,
flags
|
LOCALE_NOUSEROVERRIDE
,
buff
,
MAX_ELEM_LEN
);
GetLocaleInfoA
(
lcid
,
flags
|
LOCALE_NOUSEROVERRIDE
,
buff
,
MAX_ELEM_LEN
);
if
(
!
buff
[
0
]
||
!
cmp
[
0
]
)
if
(
!
buff
[
0
])
return
0
;
return
0
;
/* Partial matches are only allowed on language/country names */
/* Partial matches are only allowed on language/country names */
...
@@ -175,7 +178,7 @@ find_best_locale_proc(HMODULE hModule, LPCSTR type, LPCSTR name, WORD LangID, LO
...
@@ -175,7 +178,7 @@ find_best_locale_proc(HMODULE hModule, LPCSTR type, LPCSTR name, WORD LangID, LO
TRACE
(
"Found country:%s->%s
\n
"
,
res
->
search_country
,
buff
);
TRACE
(
"Found country:%s->%s
\n
"
,
res
->
search_country
,
buff
);
flags
|=
FOUND_COUNTRY
;
flags
|=
FOUND_COUNTRY
;
}
}
else
if
(
res
->
match_flags
&
FOUND_COUNTRY
)
else
if
(
!
flags
&&
(
res
->
match_flags
&
FOUND_COUNTRY
)
)
{
{
return
CONTINUE_LOOKING
;
return
CONTINUE_LOOKING
;
}
}
...
@@ -188,7 +191,7 @@ find_best_locale_proc(HMODULE hModule, LPCSTR type, LPCSTR name, WORD LangID, LO
...
@@ -188,7 +191,7 @@ find_best_locale_proc(HMODULE hModule, LPCSTR type, LPCSTR name, WORD LangID, LO
flags
|=
FOUND_CODEPAGE
;
flags
|=
FOUND_CODEPAGE
;
memcpy
(
res
->
found_codepage
,
res
->
search_codepage
,
MAX_ELEM_LEN
);
memcpy
(
res
->
found_codepage
,
res
->
search_codepage
,
MAX_ELEM_LEN
);
}
}
else
if
(
res
->
match_flags
&
FOUND_CODEPAGE
)
else
if
(
!
flags
&&
(
res
->
match_flags
&
FOUND_CODEPAGE
)
)
{
{
return
CONTINUE_LOOKING
;
return
CONTINUE_LOOKING
;
}
}
...
...
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