[ui] fix dropdown being populated on ISO selection when no device is present

* Also remove unneeded code in libfat.h
* Also set rufus-next to 2.3
This commit is contained in:
Pete Batard 2015-06-06 23:12:12 +01:00
parent 9e7b0bad89
commit 0e59b86abc
5 changed files with 22 additions and 20 deletions

View file

@ -398,6 +398,9 @@ static void SetMBRForUEFI(BOOL replace)
{
BOOL useCSM = FALSE;
if (ComboBox_GetCurSel(hDeviceList) < 0)
return;
if (image_path != NULL) {
if ( (!iso_report.has_efi) || ((iso_report.has_bootmgr) && (!allow_dual_uefi_bios) &&
(Button_GetCheck(GetDlgItem(hMainDialog, IDC_WINDOWS_TO_GO)) != BST_CHECKED)) )