mirror of
https://github.com/reactos/reactos.git
synced 2025-04-20 20:36:35 +00:00
[SETUPLIB] Fix for GetPartition()
This commit is contained in:
parent
5efe123d5f
commit
97821f00d5
1 changed files with 4 additions and 0 deletions
|
@ -2167,6 +2167,10 @@ GetPartition(
|
||||||
PPARTENTRY PartEntry;
|
PPARTENTRY PartEntry;
|
||||||
PLIST_ENTRY Entry;
|
PLIST_ENTRY Entry;
|
||||||
|
|
||||||
|
/* Forbid whole-disk or extended container partition access */
|
||||||
|
if (PartitionNumber == 0)
|
||||||
|
return NULL;
|
||||||
|
|
||||||
/* Loop over the primary partitions first... */
|
/* Loop over the primary partitions first... */
|
||||||
for (Entry = DiskEntry->PrimaryPartListHead.Flink;
|
for (Entry = DiskEntry->PrimaryPartListHead.Flink;
|
||||||
Entry != &DiskEntry->PrimaryPartListHead;
|
Entry != &DiskEntry->PrimaryPartListHead;
|
||||||
|
|
Loading…
Reference in a new issue