QueryInformationHelper: Bugfix: LastChangeTime was not correctly set

This commit is contained in:
Tal Aloni 2017-10-08 20:00:03 +03:00
parent 20cbbd0ae5
commit 03e2621fb0

View file

@ -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;