Fixed another freeze-causing bug in win_settings.c.

This commit is contained in:
OBattler
2018-02-07 02:31:01 +01:00
parent f9d881b1e7
commit dbae9ae0f5

View File

@@ -8,7 +8,7 @@
* *
* Windows 86Box Settings dialog handler. * Windows 86Box Settings dialog handler.
* *
* Version: @(#)win_settings.c 1.0.37 2018/02/06 * Version: @(#)win_settings.c 1.0.38 2018/02/07
* *
* Author: Miran Grca, <mgrca8@gmail.com> * Author: Miran Grca, <mgrca8@gmail.com>
* *
@@ -293,8 +293,8 @@ static int win_settings_changed(void)
i = i || (network_card != temp_net_card); i = i || (network_card != temp_net_card);
/* Ports category */ /* Ports category */
for (i = 0; i < 3; i++) for (j = 0; j < 3; j++)
i = i || strncmp(temp_lpt_device_names[i], lpt_device_names[i], sizeof(temp_lpt_device_names[i]) - 1); i = i || strncmp(temp_lpt_device_names[j], lpt_device_names[j], sizeof(temp_lpt_device_names[j]) - 1);
i = i || (temp_serial[0] != serial_enabled[0]); i = i || (temp_serial[0] != serial_enabled[0]);
i = i || (temp_serial[1] != serial_enabled[1]); i = i || (temp_serial[1] != serial_enabled[1]);
i = i || (temp_lpt != lpt_enabled); i = i || (temp_lpt != lpt_enabled);