localtime should accept any positive time value

Dmitry Timoshkov dmitry at codeweavers.com
Fri Feb 10 13:09:11 CST 2006


Hello,

the app I'm working crashes because it expects that localtime()
won't return NULL pointer. Further investigation has shown that
it's most likely a fault in the Wine's localtime implementation,
since MSDN tells that it accepts the time *after* midnight of
January 1, 1970, i.e. means that any positive value is legal.

Changelog:
    localtime should accept any positive time value, print a FIXME
    if after the time conversion we have an year less than 1970.

-- 
Dmitry.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: localtime.diff
Type: text/x-patch
Size: 1597 bytes
Desc: not available
Url : http://www.winehq.org/pipermail/wine-patches/attachments/20060210/fb36f892/localtime.diff


More information about the wine-patches mailing list