mirror of
https://github.com/reactos/reactos.git
synced 2025-05-07 18:56:48 +00:00
[USETUP] Small formatting changes + two functions turned into FORCEINLINE.
Based on: svn path=/branches/setup_improvements/; revision=74616
This commit is contained in:
parent
3c616b625d
commit
043a024d61
1 changed files with 10 additions and 11 deletions
|
@ -107,15 +107,13 @@ GetDriverName(
|
||||||
WCHAR KeyName[32];
|
WCHAR KeyName[32];
|
||||||
NTSTATUS Status;
|
NTSTATUS Status;
|
||||||
|
|
||||||
RtlInitUnicodeString(&DiskEntry->DriverName,
|
RtlInitUnicodeString(&DiskEntry->DriverName, NULL);
|
||||||
NULL);
|
|
||||||
|
|
||||||
RtlStringCchPrintfW(KeyName, ARRAYSIZE(KeyName),
|
RtlStringCchPrintfW(KeyName, ARRAYSIZE(KeyName),
|
||||||
L"\\Scsi\\Scsi Port %hu",
|
L"\\Scsi\\Scsi Port %hu",
|
||||||
DiskEntry->Port);
|
DiskEntry->Port);
|
||||||
|
|
||||||
RtlZeroMemory(&QueryTable,
|
RtlZeroMemory(&QueryTable, sizeof(QueryTable));
|
||||||
sizeof(QueryTable));
|
|
||||||
|
|
||||||
QueryTable[0].Name = L"Driver";
|
QueryTable[0].Name = L"Driver";
|
||||||
QueryTable[0].Flags = RTL_QUERY_REGISTRY_DIRECT;
|
QueryTable[0].Flags = RTL_QUERY_REGISTRY_DIRECT;
|
||||||
|
@ -364,7 +362,7 @@ EnumerateBiosDiskEntries(
|
||||||
}
|
}
|
||||||
|
|
||||||
AdapterCount = 0;
|
AdapterCount = 0;
|
||||||
while (1)
|
while (TRUE)
|
||||||
{
|
{
|
||||||
RtlStringCchPrintfW(Name, ARRAYSIZE(Name),
|
RtlStringCchPrintfW(Name, ARRAYSIZE(Name),
|
||||||
L"%s\\%lu",
|
L"%s\\%lu",
|
||||||
|
@ -389,7 +387,7 @@ EnumerateBiosDiskEntries(
|
||||||
NULL);
|
NULL);
|
||||||
if (NT_SUCCESS(Status))
|
if (NT_SUCCESS(Status))
|
||||||
{
|
{
|
||||||
while (1)
|
while (TRUE)
|
||||||
{
|
{
|
||||||
RtlStringCchPrintfW(Name, ARRAYSIZE(Name),
|
RtlStringCchPrintfW(Name, ARRAYSIZE(Name),
|
||||||
L"%s\\%lu\\DiskController\\0",
|
L"%s\\%lu\\DiskController\\0",
|
||||||
|
@ -421,7 +419,7 @@ EnumerateBiosDiskEntries(
|
||||||
QueryTable[1].QueryRoutine = DiskConfigurationDataQueryRoutine;
|
QueryTable[1].QueryRoutine = DiskConfigurationDataQueryRoutine;
|
||||||
|
|
||||||
DiskCount = 0;
|
DiskCount = 0;
|
||||||
while (1)
|
while (TRUE)
|
||||||
{
|
{
|
||||||
BiosDiskEntry = (BIOSDISKENTRY*)RtlAllocateHeap(ProcessHeap, HEAP_ZERO_MEMORY, sizeof(BIOSDISKENTRY));
|
BiosDiskEntry = (BIOSDISKENTRY*)RtlAllocateHeap(ProcessHeap, HEAP_ZERO_MEMORY, sizeof(BIOSDISKENTRY));
|
||||||
if (BiosDiskEntry == NULL)
|
if (BiosDiskEntry == NULL)
|
||||||
|
@ -828,7 +826,7 @@ SetDiskSignature(
|
||||||
|
|
||||||
Buffer = (PUCHAR)&DiskEntry->LayoutBuffer->Signature;
|
Buffer = (PUCHAR)&DiskEntry->LayoutBuffer->Signature;
|
||||||
|
|
||||||
while (1)
|
while (TRUE)
|
||||||
{
|
{
|
||||||
NtQuerySystemTime(&SystemTime);
|
NtQuerySystemTime(&SystemTime);
|
||||||
RtlTimeToTimeFields(&SystemTime, &TimeFields);
|
RtlTimeToTimeFields(&SystemTime, &TimeFields);
|
||||||
|
@ -1264,7 +1262,6 @@ CreatePartitionList(VOID)
|
||||||
if (NT_SUCCESS(Status))
|
if (NT_SUCCESS(Status))
|
||||||
{
|
{
|
||||||
AddDiskToList(FileHandle, DiskNumber, List);
|
AddDiskToList(FileHandle, DiskNumber, List);
|
||||||
|
|
||||||
NtClose(FileHandle);
|
NtClose(FileHandle);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -1755,7 +1752,8 @@ GetPrevPartition(
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
static
|
// static
|
||||||
|
FORCEINLINE
|
||||||
BOOLEAN
|
BOOLEAN
|
||||||
IsEmptyLayoutEntry(
|
IsEmptyLayoutEntry(
|
||||||
IN PPARTITION_INFORMATION PartitionInfo)
|
IN PPARTITION_INFORMATION PartitionInfo)
|
||||||
|
@ -1769,7 +1767,8 @@ IsEmptyLayoutEntry(
|
||||||
return FALSE;
|
return FALSE;
|
||||||
}
|
}
|
||||||
|
|
||||||
static
|
// static
|
||||||
|
FORCEINLINE
|
||||||
BOOLEAN
|
BOOLEAN
|
||||||
IsSamePrimaryLayoutEntry(
|
IsSamePrimaryLayoutEntry(
|
||||||
IN PPARTITION_INFORMATION PartitionInfo,
|
IN PPARTITION_INFORMATION PartitionInfo,
|
||||||
|
|
Loading…
Reference in a new issue