From 971f19745bb32231f47ba1fee9e528c2b8c52c84 Mon Sep 17 00:00:00 2001 From: Vincent Cunningham Date: Wed, 3 Mar 2021 11:32:20 -0500 Subject: [PATCH] Settings: Fix titlebar Close button IDCANCEL is still sent by the native Close button in the titlebar and should still be handled. --- Source/Project64/UserInterface/SettingsConfig.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/Source/Project64/UserInterface/SettingsConfig.cpp b/Source/Project64/UserInterface/SettingsConfig.cpp index ee6ec124e..90472979a 100644 --- a/Source/Project64/UserInterface/SettingsConfig.cpp +++ b/Source/Project64/UserInterface/SettingsConfig.cpp @@ -223,6 +223,7 @@ LRESULT CSettingConfig::OnClicked(WORD /*wNotifyCode*/, WORD wID, HWND, BOOL& /* ApplySettings(false); EndDialog(1); break; + case IDCANCEL: case IDC_CANCEL: EndDialog(0); break;