Skip to content

gdate: Use a more recent year when fetching the month names. Fixes #1386

Christoph Reiter requested to merge creiter/glib:win-date-fixes into master

g_date_strftime() on Windows uses the SYSTEMTIME structure which requires the year to be >=1601. Passing 1 results in a negative SYSTEMTIME.wYear which makes GetDateFormatW() fail and crashes due to missing error handling.

Just use 1976 as that's already used a few lines down.

Merge request reports