kernel32/tests: Add test for FileTimeToSystemTime.

Signed-off-by: Daniel Lehman <dlehman@esri.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Daniel Lehman 2022-03-15 10:12:01 -07:00 committed by Alexandre Julliard
parent a23ad9819a
commit a4a7ab8e3b
1 changed files with 10 additions and 0 deletions

View File

@ -395,6 +395,16 @@ static void test_FileTimeToSystemTime(void)
"Got Year %4d Month %2d Day %2d Hour %2d Min %2d Sec %2d mSec %3d\n",
st.wYear, st.wMonth, st.wDay, st.wHour, st.wMinute, st.wSecond,
st.wMilliseconds);
ft.dwHighDateTime = -1;
ft.dwLowDateTime = -1;
SetLastError(0xdeadbeef);
ret = FileTimeToSystemTime(&ft, &st);
todo_wine {
ok(!ret, "expected failure\n");
ok(GetLastError() == ERROR_INVALID_PARAMETER,
"expected ERROR_INVALID_PARAMETER, got %ld\n", GetLastError());
}
}
static void test_FileTimeToLocalFileTime(void)