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
2ce076a5
Commit
2ce076a5
authored
Dec 18, 2018
by
Akihiro Sagawa
Committed by
Alexandre Julliard
Dec 17, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
kernel32: Use Rtl function when the time zone name is useless.
Signed-off-by:
Akihiro Sagawa
<
sagawa.aki@gmail.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
51f7680d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
5 deletions
+4
-5
time.c
dlls/kernel32/time.c
+4
-5
No files found.
dlls/kernel32/time.c
View file @
2ce076a5
...
...
@@ -689,8 +689,7 @@ BOOL WINAPI SystemTimeToTzSpecificLocalTime(
}
else
{
if
(
GetTimeZoneInformation
(
&
tzinfo
)
==
TIME_ZONE_ID_INVALID
)
return
FALSE
;
RtlQueryTimeZoneInformation
((
RTL_TIME_ZONE_INFORMATION
*
)
&
tzinfo
);
}
if
(
!
SystemTimeToFileTime
(
lpUniversalTime
,
&
ft
))
...
...
@@ -735,8 +734,7 @@ BOOL WINAPI TzSpecificLocalTimeToSystemTime(
}
else
{
if
(
GetTimeZoneInformation
(
&
tzinfo
)
==
TIME_ZONE_ID_INVALID
)
return
FALSE
;
RtlQueryTimeZoneInformation
((
RTL_TIME_ZONE_INFORMATION
*
)
&
tzinfo
);
}
if
(
!
SystemTimeToFileTime
(
lpLocalTime
,
&
ft
))
...
...
@@ -1314,7 +1312,8 @@ VOID WINAPI GetSystemTime(LPSYSTEMTIME systime)
BOOL
WINAPI
GetDaylightFlag
(
void
)
{
TIME_ZONE_INFORMATION
tzinfo
;
return
GetTimeZoneInformation
(
&
tzinfo
)
==
TIME_ZONE_ID_DAYLIGHT
;
RtlQueryTimeZoneInformation
((
RTL_TIME_ZONE_INFORMATION
*
)
&
tzinfo
);
return
(
TIME_ZoneID
(
&
tzinfo
)
==
TIME_ZONE_ID_DAYLIGHT
);
}
/***********************************************************************
...
...
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