mirror of
https://github.com/reactos/reactos.git
synced 2025-08-05 08:53:02 +00:00
Don't attempt to mount a partition that starts with a fat bootblock.
svn path=/trunk/; revision=35403
This commit is contained in:
parent
7c7314849d
commit
8b23bceee1
1 changed files with 8 additions and 0 deletions
|
@ -252,6 +252,14 @@ Ext2MountVolume (
|
||||||
Ext2PerformVerifyDiskRead ( TargetDeviceObject,
|
Ext2PerformVerifyDiskRead ( TargetDeviceObject,
|
||||||
BootSector, StartingOffset, NumberOfBytesToRead );
|
BootSector, StartingOffset, NumberOfBytesToRead );
|
||||||
|
|
||||||
|
// Reject a volume that contains fat artifacts
|
||||||
|
|
||||||
|
DebugTrace(DEBUG_TRACE_MOUNT, "OEM[%s]", BootSector->Oem);
|
||||||
|
if (BootSector->Oem[0])
|
||||||
|
{
|
||||||
|
try_return (STATUS_WRONG_VOLUME);
|
||||||
|
}
|
||||||
|
|
||||||
// Allocating memory for reading in Super Block...
|
// Allocating memory for reading in Super Block...
|
||||||
|
|
||||||
SuperBlock = Ext2AllocatePool( PagedPool, NumberOfBytesToRead );
|
SuperBlock = Ext2AllocatePool( PagedPool, NumberOfBytesToRead );
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue