From 485061e4d05ec61777f30f54f9955687af06f579 Mon Sep 17 00:00:00 2001 From: Armin Novak Date: Fri, 29 Mar 2019 15:45:38 +0100 Subject: [PATCH] Fix #5317: Change file attributes before modifying file time. --- channels/drive/client/drive_file.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/channels/drive/client/drive_file.c b/channels/drive/client/drive_file.c index 0b5a707..000126c 100644 --- a/channels/drive/client/drive_file.c +++ b/channels/drive/client/drive_file.c @@ -590,13 +590,13 @@ BOOL drive_file_set_information(DRIVE_FILE* file, UINT32 FsInformationClass, UIN DEBUG_WSTR("SetFileTime %s", file->fullpath); + SetFileAttributesW(file->fullpath, FileAttributes); if (!SetFileTime(file->file_handle, pftCreationTime, pftLastAccessTime, pftLastWriteTime)) { WLog_ERR(TAG, "Unable to set file time to %s", file->fullpath); return FALSE; } - SetFileAttributesW(file->fullpath, FileAttributes); break; case FileEndOfFileInformation: -- 2.7.4