diff options
author | Stef Walter <stef@thewalter.net> | 2004-04-03 05:42:49 +0000 |
---|---|---|
committer | Stef Walter <stef@thewalter.net> | 2004-04-03 05:42:49 +0000 |
commit | 94ba99e2ccdfaf862af6ce039ae447eb244c9283 (patch) | |
tree | fad6b3e2d9fd1c80012d7e80a6713ea3d294e6eb /src/win32.c | |
parent | de5167a304b5e3b2db7462329334ac01d492d72c (diff) |
Prep for unix porting
Diffstat (limited to 'src/win32.c')
-rw-r--r-- | src/win32.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/win32.c b/src/win32.c index 0726fad..3cb5b25 100644 --- a/src/win32.c +++ b/src/win32.c @@ -33,7 +33,7 @@ void makeDriveName(char* driveName, int i) wsprintf(driveName, kDriveName, i); } -void setFileTime(wchar_t* filename, uint64* created, +void setFileTime(fchar_t* filename, uint64* created, uint64* accessed, uint64* modified) { FILETIME ftcr; @@ -49,17 +49,17 @@ void setFileTime(wchar_t* filename, uint64* created, file = CreateFileW(filename, GENERIC_WRITE, 0, NULL, OPEN_EXISTING, 0, NULL); if(file == INVALID_HANDLE_VALUE) { - warnx("couldn't set file time: %S", filename); + warnx("couldn't set file time: " FC_PRINTF, filename); return; } if(!SetFileTime(file, &ftcr, &ftac, &ftmd)) - warnx("couldn't set file time: %S", filename); + warnx("couldn't set file time: " FC_PRINTF, filename); CloseHandle(file); } -void setFileAttributes(wchar_t* filename, uint32 flags) +void setFileAttributes(fchar_t* filename, uint32 flags) { DWORD attributes; @@ -74,5 +74,5 @@ void setFileAttributes(wchar_t* filename, uint32 flags) attributes |= FILE_ATTRIBUTE_SYSTEM; if(!SetFileAttributesW(filename, attributes)) - warnx("couldn't set file attributes: %S", filename); + warnx("couldn't set file attributes: " FC_PRINTF, filename); } |