From fd7b12bb616060867e8e5c3cfd91036d61bd165c Mon Sep 17 00:00:00 2001 From: Bill Zissimopoulos Date: Thu, 6 Oct 2016 12:13:34 -0700 Subject: [PATCH] tst: memfs: minor fix --- tst/memfs/memfs.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tst/memfs/memfs.cpp b/tst/memfs/memfs.cpp index 2b4b31d9..bae71054 100644 --- a/tst/memfs/memfs.cpp +++ b/tst/memfs/memfs.cpp @@ -424,10 +424,10 @@ static NTSTATUS GetSecurityByName(FSP_FILE_SYSTEM *FileSystem, } #if defined(MEMFS_NAMED_STREAMS) - UINT32 FileAttributesMask = ~0; + UINT32 FileAttributesMask = ~(UINT32)0; if (0 != FileNode->MainFileNode) { - FileAttributesMask = ~FILE_ATTRIBUTE_DIRECTORY; + FileAttributesMask = ~(UINT32)FILE_ATTRIBUTE_DIRECTORY; FileNode = FileNode->MainFileNode; }