From: Jacob Czekalla jczekalla@codeweavers.com
--- dlls/wininet/tests/internet.c | 9 +++++++++ 1 file changed, 9 insertions(+)
diff --git a/dlls/wininet/tests/internet.c b/dlls/wininet/tests/internet.c index f2579c4993a..e8f6d6de459 100644 --- a/dlls/wininet/tests/internet.c +++ b/dlls/wininet/tests/internet.c @@ -1105,6 +1105,10 @@ static void test_InternetTimeToSystemTime(void) WCHAR buffer[64]; static const SYSTEMTIME expect1 = { 2005, 1, 5, 7, 12, 6, 35, 0 }; static const SYSTEMTIME expect2 = { 2022, 1, 2, 11, 11, 13, 5, 0 }; + static const SYSTEMTIME expect3 = { 1999, 1, 5, 7, 12, 6, 35, 0 }; + static const SYSTEMTIME expect4 = { 100, 1, 5, 7, 12, 6, 35, 0 }; + static const SYSTEMTIME expect5 = { 1600, 1, 5, 7, 12, 6, 35, 0 }; + static const SYSTEMTIME expect6 = { 30828, 1, 5, 7, 12, 6, 35, 0 };
static const struct test_data { @@ -1131,6 +1135,11 @@ static void test_InternetTimeToSystemTime(void) { "Fri Jan 7 12:06:35 2005", &expect1, TRUE, TRUE }, { "Fri Jan 7 12:06:35 2005 GMT", &expect1, TRUE, TRUE }, { "Fri Jan 7 12:06:35 2005 UTC", &expect1, TRUE, TRUE }, + { "Fri, 7-Jan-05 12:06:35 GMT", &expect1, TRUE, TRUE }, + { "Fri Jan 7 12:06:35 99 UTC", &expect3, TRUE, TRUE }, + { "Fri Jan 7 12:06:35 100 UTC", &expect4, TRUE, TRUE }, + { "Fri Jan 7 12:06:35 1600 UTC", &expect5, TRUE, TRUE }, + { "Fri Jan 7 12:06:35 30828 UTC", &expect6, TRUE, TRUE } };
ret = pInternetTimeToSystemTimeA(NULL, NULL, 0);