mirror of
https://github.com/kanjitalk755/macemu.git
synced 2025-01-23 12:29:57 +00:00
Improve naming consistency.
This commit is contained in:
parent
f1b702bddd
commit
6ac8f16efb
@ -1124,7 +1124,7 @@ int my_write( int fd, const void *buffer, unsigned int count )
|
||||
return result;
|
||||
}
|
||||
|
||||
FILETIME getFileTime(time_t time) {
|
||||
static FILETIME get_file_time(time_t time) {
|
||||
FILETIME ft;
|
||||
unsigned long long result = 11644473600LL;
|
||||
result += time;
|
||||
@ -1140,8 +1140,8 @@ int my_utime( const char *path, struct my_utimbuf * my_times )
|
||||
LPCTSTR p = MRP(tpath.get());
|
||||
HANDLE f = CreateFile(p, FILE_WRITE_ATTRIBUTES, FILE_SHARE_READ | FILE_SHARE_WRITE, NULL, OPEN_EXISTING, FILE_ATTRIBUTE_NORMAL, NULL);
|
||||
if (f != INVALID_HANDLE_VALUE) {
|
||||
FILETIME crTime = getFileTime(my_times->actime);
|
||||
FILETIME modTime = getFileTime(my_times->modtime);
|
||||
FILETIME crTime = get_file_time(my_times->actime);
|
||||
FILETIME modTime = get_file_time(my_times->modtime);
|
||||
SetFileTime(f, &crTime, NULL, &modTime);
|
||||
CloseHandle(f);
|
||||
return 0;
|
||||
|
Loading…
x
Reference in New Issue
Block a user