Fixed the operation of the WIN_DRIVE_DIAGNOSTICS command for ATAPI CD-ROM (it's almost never used but eh);

Properly fixed the CPU manufacturer/type selection bug after changing machine;
The Samspung SPC-4200 now has a PS/2 port.
This commit is contained in:
OBattler
2017-06-20 06:23:05 +02:00
parent 87725e8cfb
commit 7d67f85a1d
3 changed files with 39 additions and 28 deletions

View File

@@ -437,9 +437,9 @@ static void win_settings_machine_recalc_cpu_m(HWND hdlg)
c++;
}
EnableWindow(h, TRUE);
if (temp_cpu > c)
if (temp_cpu >= c)
{
temp_cpu = c;
temp_cpu = (c - 1);
}
SendMessage(h, CB_SETCURSEL, temp_cpu, 0);
@@ -482,9 +482,9 @@ static void win_settings_machine_recalc_model(HWND hdlg)
c++;
}
EnableWindow(h, TRUE);
if (temp_cpu_m > c)
if (temp_cpu_m >= c)
{
temp_cpu_m = c;
temp_cpu_m = (c - 1);
}
SendMessage(h, CB_SETCURSEL, temp_cpu_m, 0);
if (c == 1)