oleaut32: Update the SystemTimeToVariantTime() Y2K cutoff.
commit7dc02dcd079c37e7838b51063eb197e8d4bfe591
authorFrancois Gouget <fgouget@codeweavers.com>
Fri, 16 Jul 2021 14:07:11 +0000 (16 16:07 +0200)
committerAlexandre Julliard <julliard@winehq.org>
Tue, 20 Jul 2021 11:19:49 +0000 (20 13:19 +0200)
tree15800576da5cd93256c5fa233a10d3c529b2fd2d
parentc83b7a0f39161aec4165d3d616c08afd18a62998
oleaut32: Update the SystemTimeToVariantTime() Y2K cutoff.

Old Windows versions used 29 as the Y2K cutoff, that is is they mapped
two digit years 00-29 to 2000-2029 and years 30-99 to 1930-1999.
But starting with Windows 10 1903 the cutoff is now 49 by default.
So update Wine to match the current Windows versions and adjust the
tests to work for both.

Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=51453
Signed-off-by: Francois Gouget <fgouget@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
dlls/oleaut32/tests/vartest.c
dlls/oleaut32/variant.c