mirror of
https://github.com/reactos/reactos.git
synced 2025-08-03 17:45:41 +00:00
[FASTFAT]
Don't allow temporary attribute to be set on a directory. Even though our FastFAT totally ignores such attribute, this is illegal on Windows and makes SetFileAttribute fail, so do the same. CORE-13495 svn path=/trunk/; revision=75919
This commit is contained in:
parent
4cbe35070d
commit
05fa2e9b51
1 changed files with 6 additions and 0 deletions
|
@ -181,6 +181,12 @@ VfatSetBasicInformation(
|
||||||
|
|
||||||
if (vfatFCBIsDirectory(FCB))
|
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;
|
Attributes |= FILE_ATTRIBUTE_DIRECTORY;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue