From a7e3527b481f67ac8f9e1ee63dc9c4c05567d689 Mon Sep 17 00:00:00 2001 From: tomch Date: Sun, 18 May 2008 18:53:48 +0000 Subject: [PATCH] Fix: set afterclose=0 when init'ing Input property page --- source/PropertySheetPage.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/source/PropertySheetPage.cpp b/source/PropertySheetPage.cpp index 0f1ed39d..9546e072 100644 --- a/source/PropertySheetPage.cpp +++ b/source/PropertySheetPage.cpp @@ -627,6 +627,9 @@ static BOOL CALLBACK InputDlgProc (HWND window, CheckDlgButton(window, IDC_MOUSE_RESTRICT_TO_WINDOW, g_uMouseRestrictToWindow ? BST_CHECKED : BST_UNCHECKED); EnableWindow(GetDlgItem(window, IDC_MOUSE_CROSSHAIR), g_uMouseInSlot4 ? TRUE : FALSE); EnableWindow(GetDlgItem(window, IDC_MOUSE_RESTRICT_TO_WINDOW), g_uMouseInSlot4 ? TRUE : FALSE); + + afterclose = 0; + break; } } @@ -759,6 +762,7 @@ static BOOL CALLBACK SoundDlgProc (HWND window, } afterclose = 0; + break; } } @@ -895,6 +899,7 @@ static BOOL CALLBACK DiskDlgProc (HWND window, EnableHDD(window, IsDlgButtonChecked(window, IDC_HDD_ENABLE)); afterclose = 0; + break; } } @@ -1113,6 +1118,7 @@ static BOOL CALLBACK AdvancedDlgProc (HWND window, InitFreezeDlgButton(window); afterclose = 0; + break; } }