https://git.reactos.org/?p=reactos.git;a=commitdiff;h=043a024d613b6153dc0f5e...
commit 043a024d613b6153dc0f5e7576b0a84b9d76917d Author: Hermès Bélusca-Maïto hermes.belusca-maito@reactos.org AuthorDate: Sun May 21 23:34:03 2017 +0000 Commit: Hermès Bélusca-Maïto hermes.belusca-maito@reactos.org CommitDate: Wed Oct 24 00:35:54 2018 +0200
[USETUP] Small formatting changes + two functions turned into FORCEINLINE.
Based on: svn path=/branches/setup_improvements/; revision=74616 --- base/setup/lib/partlist.c | 21 ++++++++++----------- 1 file changed, 10 insertions(+), 11 deletions(-)
diff --git a/base/setup/lib/partlist.c b/base/setup/lib/partlist.c index 71fd77a005..f5e062b6cb 100644 --- a/base/setup/lib/partlist.c +++ b/base/setup/lib/partlist.c @@ -107,15 +107,13 @@ GetDriverName( WCHAR KeyName[32]; NTSTATUS Status;
- RtlInitUnicodeString(&DiskEntry->DriverName, - NULL); + RtlInitUnicodeString(&DiskEntry->DriverName, NULL);
RtlStringCchPrintfW(KeyName, ARRAYSIZE(KeyName), L"\Scsi\Scsi Port %hu", DiskEntry->Port);
- RtlZeroMemory(&QueryTable, - sizeof(QueryTable)); + RtlZeroMemory(&QueryTable, sizeof(QueryTable));
QueryTable[0].Name = L"Driver"; QueryTable[0].Flags = RTL_QUERY_REGISTRY_DIRECT; @@ -364,7 +362,7 @@ EnumerateBiosDiskEntries( }
AdapterCount = 0; - while (1) + while (TRUE) { RtlStringCchPrintfW(Name, ARRAYSIZE(Name), L"%s\%lu", @@ -389,7 +387,7 @@ EnumerateBiosDiskEntries( NULL); if (NT_SUCCESS(Status)) { - while (1) + while (TRUE) { RtlStringCchPrintfW(Name, ARRAYSIZE(Name), L"%s\%lu\DiskController\0", @@ -421,7 +419,7 @@ EnumerateBiosDiskEntries( QueryTable[1].QueryRoutine = DiskConfigurationDataQueryRoutine;
DiskCount = 0; - while (1) + while (TRUE) { BiosDiskEntry = (BIOSDISKENTRY*)RtlAllocateHeap(ProcessHeap, HEAP_ZERO_MEMORY, sizeof(BIOSDISKENTRY)); if (BiosDiskEntry == NULL) @@ -828,7 +826,7 @@ SetDiskSignature(
Buffer = (PUCHAR)&DiskEntry->LayoutBuffer->Signature;
- while (1) + while (TRUE) { NtQuerySystemTime(&SystemTime); RtlTimeToTimeFields(&SystemTime, &TimeFields); @@ -1264,7 +1262,6 @@ CreatePartitionList(VOID) if (NT_SUCCESS(Status)) { AddDiskToList(FileHandle, DiskNumber, List); - NtClose(FileHandle); } } @@ -1755,7 +1752,8 @@ GetPrevPartition( return NULL; }
-static +// static +FORCEINLINE BOOLEAN IsEmptyLayoutEntry( IN PPARTITION_INFORMATION PartitionInfo) @@ -1769,7 +1767,8 @@ IsEmptyLayoutEntry( return FALSE; }
-static +// static +FORCEINLINE BOOLEAN IsSamePrimaryLayoutEntry( IN PPARTITION_INFORMATION PartitionInfo,