From 9cd67104382dcc55a8ca95034ce9223183857063 Mon Sep 17 00:00:00 2001 From: Bill Zissimopoulos Date: Sun, 22 Jan 2017 16:47:50 -0800 Subject: [PATCH] tst: passthrough: minor fix --- tst/passthrough/passthrough.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tst/passthrough/passthrough.c b/tst/passthrough/passthrough.c index 99f2494f..cb20d032 100644 --- a/tst/passthrough/passthrough.c +++ b/tst/passthrough/passthrough.c @@ -254,6 +254,9 @@ static NTSTATUS Overwrite(FSP_FILE_SYSTEM *FileSystem, if (ReplaceFileAttributes) { + if (0 == FileAttributes) + FileAttributes = FILE_ATTRIBUTES_NORMAL; + BasicInfo.FileAttributes = FileAttributes; if (!SetFileInformationByHandle(Handle, FileBasicInfo, &BasicInfo, sizeof BasicInfo))