mirror of
https://github.com/pbatard/rufus.git
synced 2025-05-19 01:15:12 -04:00
[mbr] added USB selection MBR support in Rufus
* added mbr_rufus.h to ms-sys, and MBR selection to UI * also simplified int 13 override, fixing potential breakage on concurrent ints
This commit is contained in:
parent
1b7f88eb99
commit
7874f5ea5d
11 changed files with 107 additions and 20 deletions
|
@ -464,7 +464,13 @@ static BOOL WriteMBR(HANDLE hPhysicalDrive)
|
|||
if ((dt == DT_ISO) && ((fs == FS_FAT16) || (fs == FS_FAT32))) {
|
||||
r = write_syslinux_mbr(&fake_fd);
|
||||
} else {
|
||||
r = write_win7_mbr(&fake_fd);
|
||||
if (IsChecked(IDC_RUFUS_MBR)) {
|
||||
uprintf("Using Rufus bootable USB selection MBR\n");
|
||||
r = write_rufus_mbr(&fake_fd);
|
||||
} else {
|
||||
uprintf("Using Windows 7 MBR\n");
|
||||
r = write_win7_mbr(&fake_fd);
|
||||
}
|
||||
}
|
||||
|
||||
out:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue