projects
/
platform
/
upstream
/
freerdp.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
52bce47
)
Fix #5317: Change file attributes before modifying file time.
author
Armin Novak
<armin.novak@thincast.com>
Fri, 29 Mar 2019 14:45:38 +0000
(15:45 +0100)
committer
Armin Novak
<armin.novak@thincast.com>
Fri, 29 Mar 2019 14:45:52 +0000
(15:45 +0100)
channels/drive/client/drive_file.c
patch
|
blob
|
history
diff --git
a/channels/drive/client/drive_file.c
b/channels/drive/client/drive_file.c
index
0b5a707
..
000126c
100644
(file)
--- 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: