Commit 7676e9b8 authored by Jakob Eriksson's avatar Jakob Eriksson Committed by Alexandre Julliard

More trace info.

parent f7be545e
......@@ -121,15 +121,18 @@ static void test_invalid_arg()
FILETIME ft;
SYSTEMTIME st;
memset(&ft,0,sizeof ft);
/* Invalid argument checks */
ft.dwHighDateTime = 12345;
ft.dwLowDateTime = 12345;
todo_wine {
ok( !DosDateTimeToFileTime(0,0,&ft), /* invalid dos date/time */
"DosDateTimeToFileTime() didn't fail\n");
ok( 0 == DosDateTimeToFileTime(0,0,&ft),
"Invalid DOS date/time, DosDateTimeToFileTime() didn't fail!\n"
"ft.dwHighDateTime=%d, ft.dwLowDateTime=%d.\n\n", (int)ft.dwHighDateTime, (int)ft.dwLowDateTime);
}
memset(&ft,0,sizeof ft);
ok( DosDateTimeToFileTime(DOS_DATE(1980,1,1),DOS_TIME(0,0,0),&ft), /* this is 1 Jan 1980 00:00:00 */
"DosDateTimeToFileTime() failed\n");
......@@ -150,7 +153,10 @@ static void test_invalid_arg()
SETUP_1980(st)
st.wDay = 0;
ok( !SystemTimeToFileTime(&st, &ft), "bad day\n");
ft.dwHighDateTime = 11111;
ft.dwLowDateTime = 22222;
ok( 0 == SystemTimeToFileTime(&st, &ft), "SystemTimeToFileTime() succeded unexpectedly!\n"
"ft.dwHighDateTime=%d, ft.dwLowDateTime=%d.\n\n", (int)ft.dwHighDateTime, (int)ft.dwLowDateTime);
/* with a bad hour */
SETUP_1980(st)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment