mirror of
https://github.com/reactos/reactos.git
synced 2024-09-29 05:54:05 +00:00
[FASTFAT]
- Fail attempts to open files relative to the volume svn path=/trunk/; revision=70208
This commit is contained in:
parent
8e9e71dcfb
commit
774ff48872
|
@ -492,7 +492,9 @@ VfatCreateFile(
|
||||||
|
|
||||||
/* This a open operation for the volume itself */
|
/* This a open operation for the volume itself */
|
||||||
if (FileObject->FileName.Length == 0 &&
|
if (FileObject->FileName.Length == 0 &&
|
||||||
(FileObject->RelatedFileObject == NULL || FileObject->RelatedFileObject->FsContext2 != NULL))
|
(FileObject->RelatedFileObject == NULL ||
|
||||||
|
FileObject->RelatedFileObject->FsContext2 != NULL ||
|
||||||
|
FileObject->RelatedFileObject->FsContext == DeviceExt->VolumeFcb))
|
||||||
{
|
{
|
||||||
DPRINT("Volume opening\n");
|
DPRINT("Volume opening\n");
|
||||||
|
|
||||||
|
@ -544,6 +546,13 @@ VfatCreateFile(
|
||||||
return STATUS_SUCCESS;
|
return STATUS_SUCCESS;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (FileObject->RelatedFileObject != NULL &&
|
||||||
|
FileObject->RelatedFileObject->FsContext == DeviceExt->VolumeFcb)
|
||||||
|
{
|
||||||
|
ASSERT(FileObject->FileName.Length != 0);
|
||||||
|
return STATUS_OBJECT_PATH_NOT_FOUND;
|
||||||
|
}
|
||||||
|
|
||||||
/* Check for illegal characters and illegale dot sequences in the file name */
|
/* Check for illegal characters and illegale dot sequences in the file name */
|
||||||
PathNameU = FileObject->FileName;
|
PathNameU = FileObject->FileName;
|
||||||
c = PathNameU.Buffer + PathNameU.Length / sizeof(WCHAR);
|
c = PathNameU.Buffer + PathNameU.Length / sizeof(WCHAR);
|
||||||
|
|
Loading…
Reference in a new issue