aboutsummaryrefslogtreecommitdiffstats
path: root/erts/emulator/drivers/win32/win_efile.c
diff options
context:
space:
mode:
authorBjörn-Egil Dahlberg <[email protected]>2011-02-09 13:47:08 +0100
committerBjörn-Egil Dahlberg <[email protected]>2011-02-09 13:47:08 +0100
commit40bb2bed83e00ac6378a8ffa6a234dd81a58247d (patch)
treef51228a3ea3709c62143d79dc82b391f07e3def4 /erts/emulator/drivers/win32/win_efile.c
parente3d12b73ffcbc85d276414128482d7946bd0b861 (diff)
downloadotp-40bb2bed83e00ac6378a8ffa6a234dd81a58247d.tar.gz
otp-40bb2bed83e00ac6378a8ffa6a234dd81a58247d.tar.bz2
otp-40bb2bed83e00ac6378a8ffa6a234dd81a58247d.zip
Fix win32 file drivers atime/mtime
When setting file_info it will now correctly set access and modified time. Previously these entities were swapped.
Diffstat (limited to 'erts/emulator/drivers/win32/win_efile.c')
-rwxr-xr-xerts/emulator/drivers/win32/win_efile.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/erts/emulator/drivers/win32/win_efile.c b/erts/emulator/drivers/win32/win_efile.c
index 4ec9579529..101853736a 100755
--- a/erts/emulator/drivers/win32/win_efile.c
+++ b/erts/emulator/drivers/win32/win_efile.c
@@ -1016,8 +1016,8 @@ efile_write_info(Efile_error* errInfo,
} \
}
- MKTIME(ModifyFileTime, pInfo->accessTime, mtime);
- MKTIME(AccessFileTime, pInfo->modifyTime, atime);
+ MKTIME(ModifyFileTime, pInfo->modifyTime, mtime);
+ MKTIME(AccessFileTime, pInfo->accessTime, atime);
MKTIME(CreationFileTime, pInfo->cTime, ctime);
#undef MKTIME