mirror of
https://github.com/reactos/reactos.git
synced 2025-02-22 08:25:03 +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;
|
||||
PLIST_ENTRY Entry;
|
||||
|
||||
/* Forbid whole-disk or extended container partition access */
|
||||
if (PartitionNumber == 0)
|
||||
return NULL;
|
||||
|
||||
/* Loop over the primary partitions first... */
|
||||
for (Entry = DiskEntry->PrimaryPartListHead.Flink;
|
||||
Entry != &DiskEntry->PrimaryPartListHead;
|
||||
|
|
Loading…
Reference in a new issue