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
cf8fa545
Commit
cf8fa545
authored
Oct 30, 2009
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
kernel32: Make sure the codepage registry keys are set correctly on wineprefix creation.
parent
f8786eac
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
7 deletions
+7
-7
locale.c
dlls/kernel32/locale.c
+7
-3
wine.inf.in
tools/wine.inf.in
+0
-4
No files found.
dlls/kernel32/locale.c
View file @
cf8fa545
...
...
@@ -62,8 +62,6 @@ static const union cptable *oem_cptable;
static
const
union
cptable
*
mac_cptable
;
static
const
union
cptable
*
unix_cptable
;
/* NULL if UTF8 */
static
HANDLE
NLS_RegOpenKey
(
HANDLE
hRootKey
,
LPCWSTR
szKeyName
);
static
const
WCHAR
szNlsKeyName
[]
=
{
'M'
,
'a'
,
'c'
,
'h'
,
'i'
,
'n'
,
'e'
,
'\\'
,
'S'
,
'y'
,
's'
,
't'
,
'e'
,
'm'
,
'\\'
,
'C'
,
'u'
,
'r'
,
'r'
,
'e'
,
'n'
,
't'
,
'C'
,
'o'
,
'n'
,
't'
,
'r'
,
'o'
,
'l'
,
'S'
,
'e'
,
't'
,
'\\'
,
...
...
@@ -769,8 +767,13 @@ void LOCALE_InitRegistry(void)
if
(
locale_update_registry
(
hkey
,
lc_ctypeW
,
lcid_LC_CTYPE
,
NULL
,
0
))
{
HKEY
nls_key
=
NLS_RegOpenKey
(
0
,
szCodepageKeyName
);
OBJECT_ATTRIBUTES
attr
;
HANDLE
nls_key
;
RtlInitUnicodeString
(
&
nameW
,
szCodepageKeyName
);
InitializeObjectAttributes
(
&
attr
,
&
nameW
,
0
,
0
,
NULL
);
if
(
!
NtCreateKey
(
&
nls_key
,
KEY_ALL_ACCESS
,
&
attr
,
0
,
NULL
,
0
,
NULL
))
{
for
(
i
=
0
;
i
<
sizeof
(
update_cp_values
)
/
sizeof
(
update_cp_values
[
0
]);
i
++
)
{
count
=
GetLocaleInfoW
(
lcid
,
update_cp_values
[
i
].
value
|
LOCALE_NOUSEROVERRIDE
,
...
...
@@ -780,6 +783,7 @@ void LOCALE_InitRegistry(void)
}
NtClose
(
nls_key
);
}
}
NtClose
(
hkey
);
}
...
...
tools/wine.inf.in
View file @
cf8fa545
...
...
@@ -584,10 +584,6 @@ HKLM,SOFTWARE\Microsoft\Active Setup\Installed Components\{de5aed00-a4bf-11d1-99
[Nls]
HKLM,System\CurrentControlSet\Control\Nls\Codepage,"37",,""
HKLM,System\CurrentControlSet\Control\Nls\Codepage,"ACP",,"1252"
HKLM,System\CurrentControlSet\Control\Nls\Codepage,"MACCP",,"10000"
HKLM,System\CurrentControlSet\Control\Nls\Codepage,"OEMCP",,"437"
HKLM,System\CurrentControlSet\Control\Nls\Language,"0401",,""
HKLM,System\CurrentControlSet\Control\Nls\Language,"0402",,""
HKLM,System\CurrentControlSet\Control\Nls\Language,"0403",,""
...
...
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