[core] add a notice about MBR and >2TB partitions

* Also fix Boot Options not displaying when no drive is plugged in advanced mode
This commit is contained in:
Pete Batard 2019-02-01 12:34:01 +00:00
parent f98c243eb8
commit 5247ffa6ab
No known key found for this signature in database
GPG key ID: 38E0CF5E69EDD671
6 changed files with 51 additions and 30 deletions

View file

@ -68,14 +68,17 @@ static float previous_end;
// Set the combo selection according to the data
void SetComboEntry(HWND hDlg, int data)
{
int i;
for (i = 0; i < ComboBox_GetCount(hDlg); i++) {
int i, nb_entries = ComboBox_GetCount(hDlg);
if (nb_entries <= 0)
return;
for (i = 0; i < nb_entries; i++) {
if (ComboBox_GetItemData(hDlg, i) == data) {
IGNORE_RETVAL(ComboBox_SetCurSel(hDlg, i));
break;
return;
}
}
if (i == ComboBox_GetCount(hDlg))
if (i == nb_entries)
IGNORE_RETVAL(ComboBox_SetCurSel(hDlg, 0));
}