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
434bc1ba
Commit
434bc1ba
authored
Dec 07, 2018
by
Akihiro Sagawa
Committed by
Alexandre Julliard
Dec 06, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ntdll: Use an MUI time zone name if available.
Signed-off-by:
Akihiro Sagawa
<
sagawa.aki@gmail.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
86bab890
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
2 deletions
+6
-2
time.c
dlls/ntdll/time.c
+6
-2
No files found.
dlls/ntdll/time.c
View file @
434bc1ba
...
...
@@ -681,6 +681,8 @@ static void find_reg_tz_info(RTL_DYNAMIC_TIME_ZONE_INFORMATION *tzi, const char*
{
static
const
WCHAR
stdW
[]
=
{
'S'
,
't'
,
'd'
,
0
};
static
const
WCHAR
dltW
[]
=
{
'D'
,
'l'
,
't'
,
0
};
static
const
WCHAR
mui_stdW
[]
=
{
'M'
,
'U'
,
'I'
,
'_'
,
'S'
,
't'
,
'd'
,
0
};
static
const
WCHAR
mui_dltW
[]
=
{
'M'
,
'U'
,
'I'
,
'_'
,
'D'
,
'l'
,
't'
,
0
};
static
const
WCHAR
tziW
[]
=
{
'T'
,
'Z'
,
'I'
,
0
};
RTL_DYNAMIC_TIME_ZONE_INFORMATION
reg_tzi
;
HANDLE
hSubkey
,
hSubkeyDynamicDST
;
...
...
@@ -715,8 +717,10 @@ static void find_reg_tz_info(RTL_DYNAMIC_TIME_ZONE_INFORMATION *tzi, const char*
continue; \
}
get_value
(
hSubkey
,
stdW
,
REG_SZ
,
reg_tzi
.
StandardName
,
sizeof
(
reg_tzi
.
StandardName
));
get_value
(
hSubkey
,
dltW
,
REG_SZ
,
reg_tzi
.
DaylightName
,
sizeof
(
reg_tzi
.
DaylightName
));
if
(
!
reg_query_value
(
hSubkey
,
mui_stdW
,
REG_SZ
,
reg_tzi
.
StandardName
,
sizeof
(
reg_tzi
.
StandardName
)))
get_value
(
hSubkey
,
stdW
,
REG_SZ
,
reg_tzi
.
StandardName
,
sizeof
(
reg_tzi
.
StandardName
));
if
(
!
reg_query_value
(
hSubkey
,
mui_dltW
,
REG_SZ
,
reg_tzi
.
DaylightName
,
sizeof
(
reg_tzi
.
DaylightName
)))
get_value
(
hSubkey
,
dltW
,
REG_SZ
,
reg_tzi
.
DaylightName
,
sizeof
(
reg_tzi
.
DaylightName
));
memcpy
(
reg_tzi
.
TimeZoneKeyName
,
nameW
.
Buffer
,
nameW
.
Length
);
reg_tzi
.
TimeZoneKeyName
[
nameW
.
Length
/
sizeof
(
WCHAR
)]
=
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