wok diff syslinux/stuff/iso2exe/iso2exe.c @ rev 14266
syslinux/iso2exe: add partition table
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Mon Apr 01 17:47:04 2013 +0200 (2013-04-01) |
parents | bf8be127c60b |
children | ada914860f33 |
line diff
1.1 --- a/syslinux/stuff/iso2exe/iso2exe.c Mon Apr 01 09:45:40 2013 +0200 1.2 +++ b/syslinux/stuff/iso2exe/iso2exe.c Mon Apr 01 17:47:04 2013 +0200 1.3 @@ -69,6 +69,9 @@ 1.4 * (unsigned long *) &bootiso[isohybrid + partition + 8] = 0; 1.5 * (unsigned long *) &bootiso[isohybrid + partition + 12] = cylinders * sectors * heads; 1.6 1.7 + // Copy the partition table 1.8 + memcpy(bootiso + 0x1B8, bootiso + isohybrid + 0x1B8, 0x48); 1.9 + 1.10 // Install iso2exe boot sector 1.11 * (unsigned short *) (bootiso + 26) = rand(); 1.12