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
4a4f138f
Commit
4a4f138f
authored
Jul 21, 2023
by
Piotr Caban
Committed by
Alexandre Julliard
Jul 21, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
msvcrt: Set sname_match in locale_to_sname when returning cached result.
parent
f93f31de
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
1 deletion
+4
-1
locale.c
dlls/msvcrt/locale.c
+3
-1
msvcrt.h
dlls/msvcrt/msvcrt.h
+1
-0
No files found.
dlls/msvcrt/locale.c
View file @
4a4f138f
...
...
@@ -341,7 +341,8 @@ BOOL locale_to_sname(const char *locale, unsigned short *codepage, BOOL *sname_m
if
(
!
strcmp
(
locale
,
data
->
cached_locale
))
{
if
(
codepage
)
*
codepage
=
data
->
cached_cp
;
if
(
sname
)
if
(
sname_match
)
*
sname_match
=
data
->
cached_sname_match
;
wcsncpy
(
sname
,
data
->
cached_sname
,
sname_size
);
return
TRUE
;
}
...
...
@@ -441,6 +442,7 @@ BOOL locale_to_sname(const char *locale, unsigned short *codepage, BOOL *sname_m
if
(
strlen
(
locale
)
<
sizeof
(
data
->
cached_locale
))
{
strcpy
(
data
->
cached_locale
,
locale
);
data
->
cached_cp
=
locale_cp
;
data
->
cached_sname_match
=
is_sname
;
wcscpy
(
data
->
cached_sname
,
sname
);
}
...
...
dlls/msvcrt/msvcrt.h
View file @
4a4f138f
...
...
@@ -170,6 +170,7 @@ struct __thread_data {
int
processing_throw
;
frame_info
*
frame_info_head
;
void
*
unk8
[
6
];
BOOL
cached_sname_match
;
WCHAR
cached_sname
[
LOCALE_NAME_MAX_LENGTH
];
int
unk9
[
2
];
DWORD
cached_cp
;
...
...
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