[USETUP]: Fix the primary/extended partitions creation checks introduced in r63392...
authorHermès Bélusca-Maïto <hermes.belusca-maito@reactos.org>
Tue, 9 May 2017 22:09:06 +0000 (22:09 +0000)
committerHermès Bélusca-Maïto <hermes.belusca-maito@reactos.org>
Tue, 9 May 2017 22:09:06 +0000 (22:09 +0000)
commit3acad0e9e5117a320765711dcac9923bd1a34dd0
tree466026804e788d254f233b8b015087a760eb9a44
parentaf645ee7a2f1117b8946e6a34145c9c5e80f10e1
[USETUP]: Fix the primary/extended partitions creation checks introduced in r63392 : indeed this is if there are *already* 4 (primary) partitions in the table that we cannot create new primary/extended partitions.
Otherwise with the old (broken) checks, we allowed creating more than 4 partitions, and then we overflowed over memory and corrupted the partition list structures.

svn path=/trunk/; revision=74516
reactos/base/setup/usetup/partlist.c