mirror of
https://github.com/pbatard/rufus.git
synced 2025-05-20 18:05:21 -04:00
[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:
parent
f98c243eb8
commit
5247ffa6ab
6 changed files with 51 additions and 30 deletions
11
src/ui.c
11
src/ui.c
|
@ -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));
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue