Author: ekohl
Date: Sat Jun 20 13:42:39 2015
New Revision: 68207
URL:
http://svn.reactos.org/svn/reactos?rev=68207&view=rev
Log:
[USETUP]
Add support for logical partitions to the partition deletion code.
Modified:
trunk/reactos/base/setup/usetup/partlist.c
Modified: trunk/reactos/base/setup/usetup/partlist.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/base/setup/usetup/partlist…
==============================================================================
--- trunk/reactos/base/setup/usetup/partlist.c [iso-8859-1] (original)
+++ trunk/reactos/base/setup/usetup/partlist.c [iso-8859-1] Sat Jun 20 13:42:39 2015
@@ -2349,8 +2349,14 @@
PPARTENTRY PartEntry)
{
PPARTENTRY PrevPartEntry;
-
- if (PartEntry->ListEntry.Blink != &DiskEntry->PrimaryPartListHead)
+ PLIST_ENTRY ListHead;
+
+ if (PartEntry->LogicalPartition)
+ ListHead = &DiskEntry->LogicalPartListHead;
+ else
+ ListHead = &DiskEntry->PrimaryPartListHead;
+
+ if (PartEntry->ListEntry.Blink != ListHead)
{
PrevPartEntry = CONTAINING_RECORD(PartEntry->ListEntry.Blink,
PARTENTRY,
@@ -2370,8 +2376,14 @@
PPARTENTRY PartEntry)
{
PPARTENTRY NextPartEntry;
-
- if (PartEntry->ListEntry.Flink != &DiskEntry->PrimaryPartListHead)
+ PLIST_ENTRY ListHead;
+
+ if (PartEntry->LogicalPartition)
+ ListHead = &DiskEntry->LogicalPartListHead;
+ else
+ ListHead = &DiskEntry->PrimaryPartListHead;
+
+ if (PartEntry->ListEntry.Flink != ListHead)
{
NextPartEntry = CONTAINING_RECORD(PartEntry->ListEntry.Flink,
PARTENTRY,