Kai Blin : ntdll: Don't use settimeofday() to attempt to set the
timezone.
Alexandre Julliard
julliard at wine.codeweavers.com
Thu Apr 12 09:59:53 CDT 2007
Module: wine
Branch: master
Commit: 21e6beed5c75ac795f8e3aa43a2c2ebaeb88d39a
URL: http://source.winehq.org/git/wine.git/?a=commit;h=21e6beed5c75ac795f8e3aa43a2c2ebaeb88d39a
Author: Kai Blin <kai.blin at gmail.com>
Date: Wed Apr 11 14:18:23 2007 +0200
ntdll: Don't use settimeofday() to attempt to set the timezone.
---
dlls/ntdll/time.c | 14 --------------
1 files changed, 0 insertions(+), 14 deletions(-)
diff --git a/dlls/ntdll/time.c b/dlls/ntdll/time.c
index ffec919..2a05f09 100644
--- a/dlls/ntdll/time.c
+++ b/dlls/ntdll/time.c
@@ -1054,23 +1054,9 @@ NTSTATUS WINAPI RtlQueryTimeZoneInformation(RTL_TIME_ZONE_INFORMATION *tzinfo)
* Success: STATUS_SUCCESS.
* Failure: An NTSTATUS error code indicating the problem.
*
- * BUGS
- * Uses the obsolete unix timezone structure and tz_dsttime member.
*/
NTSTATUS WINAPI RtlSetTimeZoneInformation( const RTL_TIME_ZONE_INFORMATION *tzinfo )
{
-#ifdef HAVE_SETTIMEOFDAY
- struct timezone tz;
-
- tz.tz_minuteswest = tzinfo->Bias;
-#ifdef DST_NONE
- tz.tz_dsttime = DST_NONE;
-#else
- tz.tz_dsttime = 0;
-#endif
- if(!settimeofday(NULL, &tz))
- return STATUS_SUCCESS;
-#endif
return STATUS_PRIVILEGE_NOT_HELD;
}
More information about the wine-cvs
mailing list