mirror of
https://github.com/winfsp/winfsp.git
synced 2025-07-30 14:25:08 -05:00
tst: passthrough: minor fix
This commit is contained in:
@@ -254,6 +254,9 @@ static NTSTATUS Overwrite(FSP_FILE_SYSTEM *FileSystem,
|
|||||||
|
|
||||||
if (ReplaceFileAttributes)
|
if (ReplaceFileAttributes)
|
||||||
{
|
{
|
||||||
|
if (0 == FileAttributes)
|
||||||
|
FileAttributes = FILE_ATTRIBUTES_NORMAL;
|
||||||
|
|
||||||
BasicInfo.FileAttributes = FileAttributes;
|
BasicInfo.FileAttributes = FileAttributes;
|
||||||
if (!SetFileInformationByHandle(Handle,
|
if (!SetFileInformationByHandle(Handle,
|
||||||
FileBasicInfo, &BasicInfo, sizeof BasicInfo))
|
FileBasicInfo, &BasicInfo, sizeof BasicInfo))
|
||||||
|
Reference in New Issue
Block a user