Fix: FAT32 modification date is inexact (+-1sec)

Show clearly the action in the console.
This commit is contained in:
2013-06-07 00:17:32 +02:00
parent 4e0ba1e714
commit f4f668d82f
3 changed files with 30 additions and 48 deletions

View File

@@ -68,7 +68,7 @@ FileTime FileTime_Get(char *filename){
void FileTime_Set(char *filename,FileTime t){
HANDLE hFile;
FILETIME ftWrite;
hFile = CreateFile(filename, GENERIC_WRITE, FILE_SHARE_READ,
hFile = CreateFile(filename, GENERIC_WRITE, FILE_SHARE_WRITE,
NULL, OPEN_EXISTING, FILE_FLAG_BACKUP_SEMANTICS, NULL);
ftWrite=POSIX_to_FileTime(t);
SetFileTime(hFile, NULL, NULL, &ftWrite);