mirror of
https://github.com/reactos/reactos.git
synced 2024-11-18 21:13:52 +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,
|
||||
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...
|
||||
|
||||
SuperBlock = Ext2AllocatePool( PagedPool, NumberOfBytesToRead );
|
||||
|
|
Loading…
Reference in a new issue