From adb500c63bacd1f94b20acf9abb3b4a5f411a3e2 Mon Sep 17 00:00:00 2001 From: RichardG867 Date: Tue, 7 Jul 2020 16:21:45 -0300 Subject: [PATCH] Disable CPU selector if only one CPU is available --- src/win/win_settings.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/win/win_settings.c b/src/win/win_settings.c index 8eb444253..def8e978a 100644 --- a/src/win/win_settings.c +++ b/src/win/win_settings.c @@ -627,7 +627,7 @@ win_settings_machine_recalc_cpu_m(HWND hdlg) SendMessage(h, CB_ADDSTRING, 0, (LPARAM)(LPCSTR)lptsTemp); c++; } - EnableWindow(h, TRUE); + EnableWindow(h, (c == 1) ? FALSE : TRUE); if (temp_cpu >= c) temp_cpu = (c - 1); SendMessage(h, CB_SETCURSEL, temp_cpu, 0);