[wintogo] add an error popup if we can't select the version

This commit is contained in:
Pete Batard 2017-05-02 00:21:14 +01:00
parent 9950f5c088
commit 3b4b742772
4 changed files with 18 additions and 10 deletions

View file

@ -1308,8 +1308,15 @@ static BOOL BootCheck(void)
}
}
// If multiple versions are available, asks the user to select one before we commit to format the drive
if (!SetWinToGoIndex())
switch(SetWinToGoIndex()) {
case -1:
MessageBoxExU(hMainDialog, lmprintf(MSG_073), lmprintf(MSG_291), MB_OK | MB_ICONERROR | MB_IS_RTL, selected_langid);
// fall through
case -2:
return FALSE;
default:
break;
}
} else if (tt == TT_UEFI) {
if (!IS_EFI_BOOTABLE(img_report)) {
// Unsupported ISO