mirror of
https://github.com/reactos/reactos.git
synced 2025-08-03 13:45:50 +00:00
[NTOS] Code formatting only.
This commit is contained in:
parent
969de9062c
commit
d3a97e2228
2 changed files with 10 additions and 16 deletions
|
@ -1503,8 +1503,7 @@ xHalIoReadPartitionTable(IN PDEVICE_OBJECT DeviceObject,
|
|||
if (!Offset.QuadPart)
|
||||
{
|
||||
/* Then read the signature off the disk */
|
||||
(*PartitionBuffer)->Signature = ((PULONG)Buffer)
|
||||
[PARTITION_TABLE_OFFSET / 2 - 1];
|
||||
(*PartitionBuffer)->Signature = ((PULONG)Buffer)[PARTITION_TABLE_OFFSET / 2 - 1];
|
||||
}
|
||||
|
||||
/* Get the partition descriptor array */
|
||||
|
@ -1540,7 +1539,7 @@ xHalIoReadPartitionTable(IN PDEVICE_OBJECT DeviceObject,
|
|||
/* Make sure that the partition is valid, unless it's the first */
|
||||
if (!(HalpIsValidPartitionEntry(PartitionDescriptor,
|
||||
MaxOffset,
|
||||
MaxSector)) && !(j))
|
||||
MaxSector)) && (j == 0))
|
||||
{
|
||||
/* It's invalid, so fail */
|
||||
IsValid = FALSE;
|
||||
|
@ -1722,9 +1721,7 @@ xHalIoReadPartitionTable(IN PDEVICE_OBJECT DeviceObject,
|
|||
|
||||
/* Check if this is a removable device that's probably a super-floppy */
|
||||
if ((DiskGeometry.MediaType == RemovableMedia) &&
|
||||
!(j) &&
|
||||
(MbrFound) &&
|
||||
(IsEmpty))
|
||||
(j == 0) && (MbrFound) && (IsEmpty))
|
||||
{
|
||||
/* Read the jump bytes to detect super-floppy */
|
||||
if ((BootSectorInfo->JumpByte[0] == 0xeb) ||
|
||||
|
@ -2133,7 +2130,7 @@ xHalIoWritePartitionTable(IN PDEVICE_OBJECT DeviceObject,
|
|||
if (((PULONG)Buffer)[PARTITION_TABLE_OFFSET / 2 - 1] !=
|
||||
PartitionBuffer->Signature)
|
||||
{
|
||||
/* Then write the signature and now w need a rewrite */
|
||||
/* Then write the signature and now we need a rewrite */
|
||||
((PULONG)Buffer)[PARTITION_TABLE_OFFSET / 2 - 1] =
|
||||
PartitionBuffer->Signature;
|
||||
DoRewrite = TRUE;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue