diff --git a/src/rufus.c b/src/rufus.c index dac51d01..90bcd2fb 100644 --- a/src/rufus.c +++ b/src/rufus.c @@ -457,6 +457,8 @@ static void SetFSFromISO(void) int i, fs, selected_fs = FS_UNKNOWN; uint32_t fs_mask = 0; int bt = GETBIOSTYPE((int)ComboBox_GetItemData(hPartitionScheme, ComboBox_GetCurSel(hPartitionScheme))); + BOOL windows_to_go = (togo_mode) && HAS_TOGO(iso_report) && + (Button_GetCheck(GetDlgItem(hMainDialog, IDC_WINDOWS_TO_GO)) == BST_CHECKED); if (image_path == NULL) return; @@ -469,13 +471,13 @@ static void SetFSFromISO(void) // Syslinux and EFI have precedence over bootmgr (unless the user selected BIOS as target type) if ((HAS_SYSLINUX(iso_report)) || (IS_REACTOS(iso_report)) || (iso_report.has_kolibrios) || - ((iso_report.has_efi) && (bt == BT_UEFI) && (!iso_report.has_4GB_file))) { + ((iso_report.has_efi) && (bt == BT_UEFI) && (!iso_report.has_4GB_file) && (!windows_to_go))) { if (fs_mask & (1<