[PATCH] Fix for GetTimeZoneInformation

James Hatheway james at macadamian.com
Fri Apr 6 08:46:26 CDT 2001


Hi guys,

In the function GetTimeZoneInformation, it is only filling in some of
the fields in the output structure "TIME_ZONE_INFORMATION".  The fields
Bias, StandardBias, and DaylightBias are filled; StandardName, StandardDate,
DaylightName, and DaylightDate are not.  My app gets the current timezone
using the _tzname[0] global variable (assigned to by the CRT).  This
variable is assigned a value using the field StandardName returned
from GetTimeZoneInformation.  With this patch, a name is returned in this
field. (If the time zone is not recognized, a NULL is returned like before.)
The patch is larger than it appears due to all of the time zone strings.


-James

Changelog:
  James Hatheway - james at macadamian.com
  Fill in StandardName field in struct returned from GetTimeZoneInformation

Modified:
  dlls/kernel/time.c



--
James Hatheway
Software Designer - Macadamian Technologies, Inc.
james at macadamian.com ~ http://www.macadamian.com

  "Man könnte froh sein, wenn die Luft so rein wäre wie das Bier"
  "One could be happy if the air were as pure as the beer"
-------------- next part --------------
A non-text attachment was scrubbed...
Name: GetTimeZoneInfo_fix.diff
Type: application/octet-stream
Size: 10699 bytes
Desc: not available
Url : http://www.winehq.org/pipermail/wine-patches/attachments/20010406/2f00b02f/GetTimeZoneInfo_fix.obj


More information about the wine-patches mailing list