From: Eric Kohl Date: Mon, 27 Feb 2017 14:32:09 +0000 (+0000) Subject: [USETUP] X-Git-Tag: ReactOS-0.4.4-CLT2017~93 X-Git-Url: https://git.reactos.org/?p=reactos.git;a=commitdiff_plain;h=bee3e24b5e8633551b20564fe26cc06326478ee5 [USETUP] Scroll in partitions list doesn't work. Patch by thc. CORE-11895 #resolve #comment Thanks a lot! svn path=/trunk/; revision=73997 --- diff --git a/reactos/base/setup/usetup/partlist.c b/reactos/base/setup/usetup/partlist.c index 6514d0c016f..1be4d46fd27 100644 --- a/reactos/base/setup/usetup/partlist.c +++ b/reactos/base/setup/usetup/partlist.c @@ -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;