From 03e2621fb0cbf99b281c964aeb9b41c080551daf Mon Sep 17 00:00:00 2001 From: Tal Aloni Date: Sun, 8 Oct 2017 20:00:03 +0300 Subject: [PATCH] QueryInformationHelper: Bugfix: LastChangeTime was not correctly set --- SMBLibrary/SMB1FileStore/Helpers/QueryInformationHelper.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/SMBLibrary/SMB1FileStore/Helpers/QueryInformationHelper.cs b/SMBLibrary/SMB1FileStore/Helpers/QueryInformationHelper.cs index e074ae3..9c0252e 100644 --- a/SMBLibrary/SMB1FileStore/Helpers/QueryInformationHelper.cs +++ b/SMBLibrary/SMB1FileStore/Helpers/QueryInformationHelper.cs @@ -48,7 +48,7 @@ namespace SMBLibrary.SMB1 result.CreationTime = fileBasicInfo.CreationTime; result.LastAccessTime = fileBasicInfo.LastAccessTime; result.LastWriteTime = fileBasicInfo.LastWriteTime; - result.LastChangeTime = fileBasicInfo.LastWriteTime; + result.LastChangeTime = fileBasicInfo.ChangeTime; result.ExtFileAttributes = (ExtendedFileAttributes)fileBasicInfo.FileAttributes; return result; } @@ -83,7 +83,7 @@ namespace SMBLibrary.SMB1 result.CreationDateTime = fileAllInfo.BasicInformation.CreationTime; result.LastAccessDateTime = fileAllInfo.BasicInformation.LastAccessTime; result.LastWriteDateTime = fileAllInfo.BasicInformation.LastWriteTime; - result.LastChangeTime = fileAllInfo.BasicInformation.LastWriteTime; + result.LastChangeTime = fileAllInfo.BasicInformation.ChangeTime; result.ExtFileAttributes = (ExtendedFileAttributes)fileAllInfo.BasicInformation.FileAttributes; result.AllocationSize = fileAllInfo.StandardInformation.AllocationSize; result.EndOfFile = fileAllInfo.StandardInformation.EndOfFile;