diff --git a/reactos/drivers/filesystems/fastfat/finfo.c b/reactos/drivers/filesystems/fastfat/finfo.c index 03784715edb..766a4f38ee5 100644 --- a/reactos/drivers/filesystems/fastfat/finfo.c +++ b/reactos/drivers/filesystems/fastfat/finfo.c @@ -181,6 +181,12 @@ VfatSetBasicInformation( if (vfatFCBIsDirectory(FCB)) { + if (BooleanFlagOn(BasicInfo->FileAttributes, FILE_ATTRIBUTE_TEMPORARY)) + { + DPRINT("Setting temporary attribute on a directory!\n"); + return STATUS_INVALID_PARAMETER; + } + Attributes |= FILE_ATTRIBUTE_DIRECTORY; } else