Fetch again the file time to compare against to avoid rounding errors.

This commit is contained in:
Alexandre Julliard 2005-03-22 21:14:51 +00:00
parent 195d4018aa
commit 3ea748b7c8
1 changed files with 1 additions and 0 deletions

View File

@ -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);