mirror of
https://github.com/reactos/reactos.git
synced 2025-07-28 02:21:55 +00:00
[FORMATTING] Fix formatting, no code change
svn path=/trunk/; revision=31202
This commit is contained in:
parent
44083c8d46
commit
7c69396b36
1 changed files with 174 additions and 175 deletions
|
@ -51,7 +51,7 @@ static NTSTATUS
|
||||||
HalpXboxReadSector(IN PDEVICE_OBJECT DeviceObject,
|
HalpXboxReadSector(IN PDEVICE_OBJECT DeviceObject,
|
||||||
IN ULONG SectorSize,
|
IN ULONG SectorSize,
|
||||||
IN PLARGE_INTEGER SectorOffset,
|
IN PLARGE_INTEGER SectorOffset,
|
||||||
IN PVOID Sector)
|
OUT PVOID Sector)
|
||||||
{
|
{
|
||||||
IO_STATUS_BLOCK StatusBlock;
|
IO_STATUS_BLOCK StatusBlock;
|
||||||
KEVENT Event;
|
KEVENT Event;
|
||||||
|
@ -91,8 +91,7 @@ HalpXboxReadSector(IN PDEVICE_OBJECT DeviceObject,
|
||||||
|
|
||||||
if (!NT_SUCCESS(Status))
|
if (!NT_SUCCESS(Status))
|
||||||
{
|
{
|
||||||
DPRINT("Reading sector failed (Status 0x%08lx)\n",
|
DPRINT("Reading sector failed (Status 0x%08lx)\n", Status);
|
||||||
Status);
|
|
||||||
return Status;
|
return Status;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -100,9 +99,9 @@ HalpXboxReadSector(IN PDEVICE_OBJECT DeviceObject,
|
||||||
}
|
}
|
||||||
|
|
||||||
static NTSTATUS FASTCALL
|
static NTSTATUS FASTCALL
|
||||||
HalpXboxDeviceHasXboxPartitioning(PDEVICE_OBJECT DeviceObject,
|
HalpXboxDeviceHasXboxPartitioning(IN PDEVICE_OBJECT DeviceObject,
|
||||||
ULONG SectorSize,
|
IN ULONG SectorSize,
|
||||||
BOOLEAN *HasXboxPartitioning)
|
OUT BOOLEAN *HasXboxPartitioning)
|
||||||
{
|
{
|
||||||
PVOID SectorData;
|
PVOID SectorData;
|
||||||
LARGE_INTEGER Offset;
|
LARGE_INTEGER Offset;
|
||||||
|
@ -114,7 +113,7 @@ HalpXboxDeviceHasXboxPartitioning(PDEVICE_OBJECT DeviceObject,
|
||||||
HasXboxPartitioning);
|
HasXboxPartitioning);
|
||||||
|
|
||||||
SectorData = ExAllocatePool(PagedPool, SectorSize);
|
SectorData = ExAllocatePool(PagedPool, SectorSize);
|
||||||
if (NULL == SectorData)
|
if (!SectorData)
|
||||||
{
|
{
|
||||||
return STATUS_NO_MEMORY;
|
return STATUS_NO_MEMORY;
|
||||||
}
|
}
|
||||||
|
@ -170,14 +169,14 @@ HalpXboxExamineMBR(IN PDEVICE_OBJECT DeviceObject,
|
||||||
}
|
}
|
||||||
|
|
||||||
static NTSTATUS FASTCALL
|
static NTSTATUS FASTCALL
|
||||||
HalpXboxIoReadPartitionTable(PDEVICE_OBJECT DeviceObject,
|
HalpXboxIoReadPartitionTable(IN PDEVICE_OBJECT DeviceObject,
|
||||||
ULONG SectorSize,
|
IN ULONG SectorSize,
|
||||||
BOOLEAN ReturnRecognizedPartitions,
|
IN BOOLEAN ReturnRecognizedPartitions,
|
||||||
PDRIVE_LAYOUT_INFORMATION *PartitionBuffer)
|
OUT PDRIVE_LAYOUT_INFORMATION *PartitionBuffer)
|
||||||
{
|
{
|
||||||
BOOLEAN HasXboxPartitioning;
|
BOOLEAN HasXboxPartitioning;
|
||||||
NTSTATUS Status;
|
NTSTATUS Status;
|
||||||
unsigned Part;
|
ULONG Part;
|
||||||
PPARTITION_INFORMATION PartInfo;
|
PPARTITION_INFORMATION PartInfo;
|
||||||
|
|
||||||
DPRINT("HalpXboxIoReadPartitionTable(%p %lu %x %p)\n",
|
DPRINT("HalpXboxIoReadPartitionTable(%p %lu %x %p)\n",
|
||||||
|
@ -256,7 +255,7 @@ HalpXboxIoSetPartitionInformation(IN PDEVICE_OBJECT DeviceObject,
|
||||||
return Status;
|
return Status;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (! HasXboxPartitioning)
|
if (!HasXboxPartitioning)
|
||||||
{
|
{
|
||||||
DPRINT("Delegating to standard MBR code\n");
|
DPRINT("Delegating to standard MBR code\n");
|
||||||
return NtoskrnlIoSetPartitionInformation(DeviceObject, SectorSize,
|
return NtoskrnlIoSetPartitionInformation(DeviceObject, SectorSize,
|
||||||
|
@ -291,7 +290,7 @@ HalpXboxIoWritePartitionTable(IN PDEVICE_OBJECT DeviceObject,
|
||||||
return Status;
|
return Status;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (! HasXboxPartitioning)
|
if (!HasXboxPartitioning)
|
||||||
{
|
{
|
||||||
DPRINT("Delegating to standard MBR code\n");
|
DPRINT("Delegating to standard MBR code\n");
|
||||||
return NtoskrnlIoWritePartitionTable(DeviceObject, SectorSize,
|
return NtoskrnlIoWritePartitionTable(DeviceObject, SectorSize,
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue