Fixed a bug in win_settings.c.

This commit is contained in:
OBattler
2018-09-11 23:12:23 +02:00
parent c588575dbe
commit 36556e5a1f

View File

@@ -8,7 +8,7 @@
*
* Windows 86Box Settings dialog handler.
*
* Version: @(#)win_settings.c 1.0.58 2018/09/11
* Version: @(#)win_settings.c 1.0.59 2018/09/11
*
* Authors: Miran Grca, <mgrca8@gmail.com>
* David Hrdlička, <hrdlickadavid@outlook.com>
@@ -1306,7 +1306,8 @@ win_settings_sound_proc(HWND hdlg, UINT message, WPARAM wParam, LPARAM lParam)
case IDC_CONFIGURE_MPU401:
mca_version = !!(machines[temp_machine].flags & MACHINE_MCA);
temp_deviceconfig |= deviceconfig_open(hdlg, mca_version ? (void *)&mpu401_mca_device : (void *)&mpu401_device);
temp_deviceconfig |= deviceconfig_open(hdlg, (machines[temp_machine].flags & MACHINE_MCA) ?
(void *)&mpu401_mca_device : (void *)&mpu401_device);
break;
}
return FALSE;