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
46fd718e
Commit
46fd718e
authored
Mar 03, 2021
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ntdll: Fetch locale information from the Unix side in resource loading.
Wine-Bug:
https://bugs.winehq.org/show_bug.cgi?id=50769
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
40e1000f
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
4 additions
and
5 deletions
+4
-5
locale.c
dlls/ntdll/locale.c
+0
-2
ntdll_misc.h
dlls/ntdll/ntdll_misc.h
+0
-3
resource.c
dlls/ntdll/resource.c
+4
-0
No files found.
dlls/ntdll/locale.c
View file @
46fd718e
...
...
@@ -100,8 +100,6 @@ struct norm_table
/* WORD[] composition character sequences */
};
LCID
user_lcid
=
0
,
system_lcid
=
0
;
static
NLSTABLEINFO
nls_info
;
static
HMODULE
kernel32_handle
;
static
struct
norm_table
*
norm_tables
[
16
];
...
...
dlls/ntdll/ntdll_misc.h
View file @
46fd718e
...
...
@@ -85,9 +85,6 @@ extern const struct unix_funcs *unix_funcs DECLSPEC_HIDDEN;
extern
struct
_KUSER_SHARED_DATA
*
user_shared_data
DECLSPEC_HIDDEN
;
/* locale */
extern
LCID
user_lcid
,
system_lcid
;
extern
int
CDECL
NTDLL__vsnprintf
(
char
*
str
,
SIZE_T
len
,
const
char
*
format
,
__ms_va_list
args
)
DECLSPEC_HIDDEN
;
extern
int
CDECL
NTDLL__vsnwprintf
(
WCHAR
*
str
,
SIZE_T
len
,
const
WCHAR
*
format
,
__ms_va_list
args
)
DECLSPEC_HIDDEN
;
...
...
dlls/ntdll/resource.c
View file @
46fd718e
...
...
@@ -175,6 +175,7 @@ static const IMAGE_RESOURCE_DIRECTORY *find_entry_by_name( const IMAGE_RESOURCE_
static
NTSTATUS
find_entry
(
HMODULE
hmod
,
const
LDR_RESOURCE_INFO
*
info
,
ULONG
level
,
const
void
**
ret
,
int
want_dir
)
{
static
LCID
user_lcid
,
system_lcid
;
ULONG
size
;
const
void
*
root
;
const
IMAGE_RESOURCE_DIRECTORY
*
resdirptr
;
...
...
@@ -212,6 +213,8 @@ static NTSTATUS find_entry( HMODULE hmod, const LDR_RESOURCE_INFO *info,
/* user defaults, unless SYS_DEFAULT sublanguage specified */
if
(
SUBLANGID
(
info
->
Language
)
!=
SUBLANG_SYS_DEFAULT
)
{
if
(
!
user_lcid
)
NtQueryDefaultLocale
(
TRUE
,
&
user_lcid
);
/* 4. current thread locale language */
pos
=
push_language
(
list
,
pos
,
LANGIDFROMLCID
(
NtCurrentTeb
()
->
CurrentLocale
)
);
...
...
@@ -223,6 +226,7 @@ static NTSTATUS find_entry( HMODULE hmod, const LDR_RESOURCE_INFO *info,
}
/* now system defaults */
if
(
!
system_lcid
)
NtQueryDefaultLocale
(
FALSE
,
&
system_lcid
);
/* 7. system locale language */
pos
=
push_language
(
list
,
pos
,
LANGIDFROMLCID
(
system_lcid
)
);
...
...
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