From 94ba99e2ccdfaf862af6ce039ae447eb244c9283 Mon Sep 17 00:00:00 2001 From: Stef Walter Date: Sat, 3 Apr 2004 05:42:49 +0000 Subject: Prep for unix porting --- src/win32.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'src/win32.c') 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); } -- cgit v1.2.3