On Wed, 2004-06-23 at 23:36, Andries Brouwer wrote: > On Wed, Jun 23, 2004 at 11:15:49PM +0200, FabF wrote: > > > > -DOS_EXTENDED_PARTITION washing#2 > > (we don't want magic numbers, do we ?) > > -Remove use of <= 4 to < DOS_EXTENDED_PARTITION where needed > > > - for (slot = 1; slot <= 4; slot++, p++) { > > + for (slot = 1; slot < DOS_EXTENDED_PARTITION; slot++, p++) { > > Maybe you do not know, but the 5 of DOS_EXTENDED_PARTITION is the > value written in the sys_ind field of a partition. > > It is totally unrelated to the 4 that is the upper bound of the > loop over the four primary partitions in a DOS-type partition table. > Here's a new version: -macro simplification (We're calling from struct & buffer so static fx conversion seems troublesome) -(p) -MBR patch only Someone could check EFI ? Regards, FabF