mirror of
https://github.com/reactos/reactos.git
synced 2025-08-05 23:03:00 +00:00
[SETUPLIB][USETUP] Reduce duplicated code
- ScrollDownPartitionList() and ScrollUpPartitionList() --> ScrollUpDownPartitionList() - GetPrimaryPartitionCount() and GetLogicalPartitionCount() --> generic GetPartitionCount() and macros. - GetPrevUnpartitionedEntry() and GetNextUnpartitionedEntry() --> GetAdjUnpartitionedEntry() ("Adj" == Adjacent)
This commit is contained in:
parent
97821f00d5
commit
7639cb750a
5 changed files with 73 additions and 122 deletions
|
@ -702,9 +702,6 @@ ResolveArcNameManually(
|
|||
BOOLEAN UseSignature;
|
||||
SIZE_T NameLength;
|
||||
|
||||
PDISKENTRY DiskEntry;
|
||||
PPARTENTRY PartEntry = NULL;
|
||||
|
||||
if (NtName->MaximumLength < sizeof(UNICODE_NULL))
|
||||
return STATUS_BUFFER_TOO_SMALL;
|
||||
|
||||
|
@ -757,6 +754,9 @@ ResolveArcNameManually(
|
|||
else
|
||||
if (PeripheralType == RDiskPeripheral)
|
||||
{
|
||||
PDISKENTRY DiskEntry;
|
||||
PPARTENTRY PartEntry = NULL;
|
||||
|
||||
if (UseSignature)
|
||||
{
|
||||
/* The disk signature is stored in AdapterKey */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue