[USETUP]
authorEric Kohl <eric.kohl@reactos.org>
Mon, 27 Feb 2017 14:32:09 +0000 (14:32 +0000)
committerEric Kohl <eric.kohl@reactos.org>
Mon, 27 Feb 2017 14:32:09 +0000 (14:32 +0000)
Scroll in partitions list doesn't work.
Patch by thc.
CORE-11895 #resolve #comment Thanks a lot!

svn path=/trunk/; revision=73997

reactos/base/setup/usetup/partlist.c

index 6514d0c..1be4d46 100644 (file)
@@ -1935,6 +1935,27 @@ DrawPartitionList(
             LastLine++;
         }
 
+        if (CurrentPartLineFound == FALSE)
+        {
+            Entry2 = DiskEntry->LogicalPartListHead.Flink;
+            while (Entry2 != &DiskEntry->LogicalPartListHead)
+            {
+                PartEntry = CONTAINING_RECORD(Entry2, PARTENTRY, ListEntry);
+                if (PartEntry == List->CurrentPartition)
+                {
+                    CurrentPartLineFound = TRUE;
+                }
+
+                Entry2 = Entry2->Flink;
+                if (CurrentPartLineFound == FALSE)
+                {
+                    CurrentPartLine++;
+                }
+
+                LastLine++;
+            }
+        }
+
         if (DiskEntry == List->CurrentDisk)
         {
             CurrentDiskLineFound = TRUE;