Fetch again the file time to compare against to avoid rounding errors.
This commit is contained in:
parent
195d4018aa
commit
3ea748b7c8
|
@ -574,6 +574,7 @@ static void test_CopyFileA(void)
|
|||
ok(GetFileTime(hfile, NULL, NULL, &ft1), "GetFileTime error %ld\n", GetLastError());
|
||||
ft1.dwLowDateTime -= 600000000; /* 60 second */
|
||||
ok(SetFileTime(hfile, NULL, NULL, &ft1), "SetFileTime error %ld\n", GetLastError());
|
||||
GetFileTime(hfile, NULL, NULL, &ft1); /* get the actual time back */
|
||||
CloseHandle(hfile);
|
||||
|
||||
ret = GetTempFileNameA(temp_path, prefix, 0, dest);
|
||||
|
|
Loading…
Reference in New Issue