mirror of
https://github.com/pbatard/rufus.git
synced 2025-05-25 04:04:26 -04:00
v1.1.6 (#161)
* Add cheat mode for MBR selection (Alt-M) * fix NTFS default for WinPE * fix Clang warnings
This commit is contained in:
parent
db76e396fd
commit
b397889ab6
3 changed files with 24 additions and 14 deletions
10
src/rufus.c
10
src/rufus.c
|
@ -408,7 +408,7 @@ static void SetFSFromISO(void)
|
|||
} else if (fs_mask & (1<<FS_FAT16)) {
|
||||
selected_fs = FS_FAT16;
|
||||
}
|
||||
} else if (iso_report.has_bootmgr) {
|
||||
} else if ((iso_report.has_bootmgr) || (IS_WINPE(iso_report.winpe))) {
|
||||
if (fs_mask & (1<<FS_NTFS)) {
|
||||
selected_fs = FS_NTFS;
|
||||
}
|
||||
|
@ -1532,6 +1532,7 @@ int WINAPI WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdLine
|
|||
HANDLE mutex = NULL;
|
||||
HWND hDlg = NULL;
|
||||
MSG msg;
|
||||
BOOL mbr_shown = FALSE;
|
||||
|
||||
uprintf("*** RUFUS INIT ***\n");
|
||||
|
||||
|
@ -1591,6 +1592,13 @@ int WINAPI WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdLine
|
|||
existing_key = FALSE;
|
||||
continue;
|
||||
}
|
||||
// Alt M => make Rufus MBR choice visible
|
||||
if ((msg.message == WM_SYSKEYDOWN) && (msg.wParam == 'M')) {
|
||||
mbr_shown = !mbr_shown;
|
||||
ShowWindow(GetDlgItem(hDlg, IDC_RUFUS_MBR), mbr_shown?SW_SHOW:SW_HIDE);
|
||||
existing_key = FALSE;
|
||||
continue;
|
||||
}
|
||||
TranslateMessage(&msg);
|
||||
DispatchMessage(&msg);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue