mirror of
https://github.com/reactos/reactos.git
synced 2025-08-06 07:43:12 +00:00
[NTOS:FSTUB] Whitespace fixes only.
This commit is contained in:
parent
075871076c
commit
e3c35c2227
2 changed files with 36 additions and 29 deletions
|
@ -1393,6 +1393,7 @@ HalpGetFullGeometry(IN PDEVICE_OBJECT DeviceObject,
|
||||||
IO_STATUS_BLOCK IoStatusBlock;
|
IO_STATUS_BLOCK IoStatusBlock;
|
||||||
PKEVENT Event;
|
PKEVENT Event;
|
||||||
NTSTATUS Status;
|
NTSTATUS Status;
|
||||||
|
|
||||||
PAGED_CODE();
|
PAGED_CODE();
|
||||||
|
|
||||||
/* Allocate a non-paged event */
|
/* Allocate a non-paged event */
|
||||||
|
@ -1653,6 +1654,7 @@ xHalExamineMBR(IN PDEVICE_OBJECT DeviceObject,
|
||||||
PPARTITION_DESCRIPTOR PartitionDescriptor;
|
PPARTITION_DESCRIPTOR PartitionDescriptor;
|
||||||
NTSTATUS Status;
|
NTSTATUS Status;
|
||||||
PIO_STACK_LOCATION IoStackLocation;
|
PIO_STACK_LOCATION IoStackLocation;
|
||||||
|
|
||||||
Offset.QuadPart = 0;
|
Offset.QuadPart = 0;
|
||||||
|
|
||||||
/* Assume failure */
|
/* Assume failure */
|
||||||
|
@ -1789,9 +1791,11 @@ xHalIoReadPartitionTable(IN PDEVICE_OBJECT DeviceObject,
|
||||||
PIO_STACK_LOCATION IoStackLocation;
|
PIO_STACK_LOCATION IoStackLocation;
|
||||||
UCHAR PartitionType;
|
UCHAR PartitionType;
|
||||||
LARGE_INTEGER HiddenSectors64;
|
LARGE_INTEGER HiddenSectors64;
|
||||||
VolumeOffset.QuadPart = Offset.QuadPart = 0;
|
|
||||||
PAGED_CODE();
|
PAGED_CODE();
|
||||||
|
|
||||||
|
VolumeOffset.QuadPart = Offset.QuadPart = 0;
|
||||||
|
|
||||||
/* Allocate the buffer */
|
/* Allocate the buffer */
|
||||||
*PartitionBuffer = ExAllocatePoolWithTag(NonPagedPool,
|
*PartitionBuffer = ExAllocatePoolWithTag(NonPagedPool,
|
||||||
BufferSize,
|
BufferSize,
|
||||||
|
@ -2212,9 +2216,11 @@ xHalIoSetPartitionInformation(IN PDEVICE_OBJECT DeviceObject,
|
||||||
BOOLEAN IsPrimary = TRUE, IsEzDrive = FALSE;
|
BOOLEAN IsPrimary = TRUE, IsEzDrive = FALSE;
|
||||||
PVOID MbrBuffer;
|
PVOID MbrBuffer;
|
||||||
PIO_STACK_LOCATION IoStackLocation;
|
PIO_STACK_LOCATION IoStackLocation;
|
||||||
VolumeOffset.QuadPart = Offset.QuadPart = 0;
|
|
||||||
PAGED_CODE();
|
PAGED_CODE();
|
||||||
|
|
||||||
|
VolumeOffset.QuadPart = Offset.QuadPart = 0;
|
||||||
|
|
||||||
/* Normalize the buffer size */
|
/* Normalize the buffer size */
|
||||||
BufferSize = max(512, SectorSize);
|
BufferSize = max(512, SectorSize);
|
||||||
|
|
||||||
|
@ -2287,8 +2293,7 @@ xHalIoSetPartitionInformation(IN PDEVICE_OBJECT DeviceObject,
|
||||||
for (Entry = 1; Entry <= 4; Entry++, PartitionDescriptor++)
|
for (Entry = 1; Entry <= 4; Entry++, PartitionDescriptor++)
|
||||||
{
|
{
|
||||||
/* Check if it's unused or a container partition */
|
/* Check if it's unused or a container partition */
|
||||||
if ((PartitionDescriptor->PartitionType ==
|
if ((PartitionDescriptor->PartitionType == PARTITION_ENTRY_UNUSED) ||
|
||||||
PARTITION_ENTRY_UNUSED) ||
|
|
||||||
(IsContainerPartition(PartitionDescriptor->PartitionType)))
|
(IsContainerPartition(PartitionDescriptor->PartitionType)))
|
||||||
{
|
{
|
||||||
/* Go to the next one */
|
/* Go to the next one */
|
||||||
|
@ -2409,9 +2414,11 @@ xHalIoWritePartitionTable(IN PDEVICE_OBJECT DeviceObject,
|
||||||
PIO_STACK_LOCATION IoStackLocation;
|
PIO_STACK_LOCATION IoStackLocation;
|
||||||
PPARTITION_INFORMATION PartitionInfo = PartitionBuffer->PartitionEntry;
|
PPARTITION_INFORMATION PartitionInfo = PartitionBuffer->PartitionEntry;
|
||||||
PPARTITION_INFORMATION TableEntry;
|
PPARTITION_INFORMATION TableEntry;
|
||||||
ExtendedOffset.QuadPart = NextOffset.QuadPart = Offset.QuadPart = 0;
|
|
||||||
PAGED_CODE();
|
PAGED_CODE();
|
||||||
|
|
||||||
|
ExtendedOffset.QuadPart = NextOffset.QuadPart = Offset.QuadPart = 0;
|
||||||
|
|
||||||
/* Normalize the buffer size */
|
/* Normalize the buffer size */
|
||||||
BufferSize = max(512, SectorSize);
|
BufferSize = max(512, SectorSize);
|
||||||
|
|
||||||
|
@ -2618,7 +2625,7 @@ xHalIoWritePartitionTable(IN PDEVICE_OBJECT DeviceObject,
|
||||||
KeInitializeEvent(&Event, NotificationEvent, FALSE);
|
KeInitializeEvent(&Event, NotificationEvent, FALSE);
|
||||||
|
|
||||||
/* If we unbiased for EZ-Drive, rebias now */
|
/* If we unbiased for EZ-Drive, rebias now */
|
||||||
if ((IsEzDrive) && !(Offset.QuadPart)) Offset.QuadPart = 512;
|
if (IsEzDrive && !Offset.QuadPart) Offset.QuadPart = 512;
|
||||||
|
|
||||||
/* Build the write IRP */
|
/* Build the write IRP */
|
||||||
Irp = IoBuildSynchronousFsdRequest(IRP_MJ_WRITE,
|
Irp = IoBuildSynchronousFsdRequest(IRP_MJ_WRITE,
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue