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
4ef37887
Commit
4ef37887
authored
May 24, 2019
by
Akihiro Sagawa
Committed by
Alexandre Julliard
May 24, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
kernel32: Add traces to time zone functions.
Signed-off-by:
Akihiro Sagawa
<
sagawa.aki@gmail.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
0fc2f638
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
0 deletions
+7
-0
time.c
dlls/kernel32/time.c
+7
-0
No files found.
dlls/kernel32/time.c
View file @
4ef37887
...
@@ -610,6 +610,7 @@ DWORD WINAPI GetTimeZoneInformation( LPTIME_ZONE_INFORMATION ret )
...
@@ -610,6 +610,7 @@ DWORD WINAPI GetTimeZoneInformation( LPTIME_ZONE_INFORMATION ret )
DYNAMIC_TIME_ZONE_INFORMATION
tzinfo
;
DYNAMIC_TIME_ZONE_INFORMATION
tzinfo
;
DWORD
time_zone_id
;
DWORD
time_zone_id
;
TRACE
(
"(%p)
\n
"
,
ret
);
time_zone_id
=
GetDynamicTimeZoneInformation
(
&
tzinfo
);
time_zone_id
=
GetDynamicTimeZoneInformation
(
&
tzinfo
);
memcpy
(
ret
,
&
tzinfo
,
sizeof
(
*
ret
)
);
memcpy
(
ret
,
&
tzinfo
,
sizeof
(
*
ret
)
);
return
time_zone_id
;
return
time_zone_id
;
...
@@ -623,6 +624,7 @@ BOOL WINAPI GetTimeZoneInformationForYear( USHORT wYear,
...
@@ -623,6 +624,7 @@ BOOL WINAPI GetTimeZoneInformationForYear( USHORT wYear,
{
{
DYNAMIC_TIME_ZONE_INFORMATION
local_dtzi
,
result
;
DYNAMIC_TIME_ZONE_INFORMATION
local_dtzi
,
result
;
TRACE
(
"(%u,%p)
\n
"
,
wYear
,
ptzi
);
if
(
!
pdtzi
)
if
(
!
pdtzi
)
{
{
if
(
GetDynamicTimeZoneInformation
(
&
local_dtzi
)
==
TIME_ZONE_ID_INVALID
)
if
(
GetDynamicTimeZoneInformation
(
&
local_dtzi
)
==
TIME_ZONE_ID_INVALID
)
...
@@ -654,6 +656,8 @@ BOOL WINAPI GetTimeZoneInformationForYear( USHORT wYear,
...
@@ -654,6 +656,8 @@ BOOL WINAPI GetTimeZoneInformationForYear( USHORT wYear,
BOOL
WINAPI
SetTimeZoneInformation
(
const
TIME_ZONE_INFORMATION
*
tzinfo
)
BOOL
WINAPI
SetTimeZoneInformation
(
const
TIME_ZONE_INFORMATION
*
tzinfo
)
{
{
NTSTATUS
status
;
NTSTATUS
status
;
TRACE
(
"(%p)
\n
"
,
tzinfo
);
status
=
RtlSetTimeZoneInformation
(
(
const
RTL_TIME_ZONE_INFORMATION
*
)
tzinfo
);
status
=
RtlSetTimeZoneInformation
(
(
const
RTL_TIME_ZONE_INFORMATION
*
)
tzinfo
);
if
(
status
!=
STATUS_SUCCESS
)
if
(
status
!=
STATUS_SUCCESS
)
SetLastError
(
RtlNtStatusToDosError
(
status
)
);
SetLastError
(
RtlNtStatusToDosError
(
status
)
);
...
@@ -1312,6 +1316,8 @@ VOID WINAPI GetSystemTime(LPSYSTEMTIME systime)
...
@@ -1312,6 +1316,8 @@ VOID WINAPI GetSystemTime(LPSYSTEMTIME systime)
BOOL
WINAPI
GetDaylightFlag
(
void
)
BOOL
WINAPI
GetDaylightFlag
(
void
)
{
{
TIME_ZONE_INFORMATION
tzinfo
;
TIME_ZONE_INFORMATION
tzinfo
;
TRACE
(
"()
\n
"
);
RtlQueryTimeZoneInformation
((
RTL_TIME_ZONE_INFORMATION
*
)
&
tzinfo
);
RtlQueryTimeZoneInformation
((
RTL_TIME_ZONE_INFORMATION
*
)
&
tzinfo
);
return
(
TIME_ZoneID
(
&
tzinfo
)
==
TIME_ZONE_ID_DAYLIGHT
);
return
(
TIME_ZoneID
(
&
tzinfo
)
==
TIME_ZONE_ID_DAYLIGHT
);
}
}
...
@@ -1462,6 +1468,7 @@ DWORD WINAPI GetDynamicTimeZoneInformation(DYNAMIC_TIME_ZONE_INFORMATION *tzinfo
...
@@ -1462,6 +1468,7 @@ DWORD WINAPI GetDynamicTimeZoneInformation(DYNAMIC_TIME_ZONE_INFORMATION *tzinfo
NTSTATUS
status
;
NTSTATUS
status
;
HANDLE
time_zone_key
;
HANDLE
time_zone_key
;
TRACE
(
"(%p)
\n
"
,
tzinfo
);
status
=
RtlQueryDynamicTimeZoneInformation
(
(
RTL_DYNAMIC_TIME_ZONE_INFORMATION
*
)
tzinfo
);
status
=
RtlQueryDynamicTimeZoneInformation
(
(
RTL_DYNAMIC_TIME_ZONE_INFORMATION
*
)
tzinfo
);
if
(
status
!=
STATUS_SUCCESS
)
if
(
status
!=
STATUS_SUCCESS
)
{
{
...
...
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