Commit 4ef37887 authored by Akihiro Sagawa's avatar Akihiro Sagawa Committed by Alexandre Julliard

kernel32: Add traces to time zone functions.

parent 0fc2f638
...@@ -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 )
{ {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment