From 33aa43c80fbfbc4654c4aaf8f185e7e5e67fa241 Mon Sep 17 00:00:00 2001 From: Johannes Anderwald Date: Thu, 18 Oct 2007 21:09:45 +0000 Subject: [PATCH] - only register hotkey when setup is active - should fix bug 2684 See issue #2684 for more details. svn path=/trunk/; revision=29662 --- reactos/base/system/winlogon/sas.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/reactos/base/system/winlogon/sas.c b/reactos/base/system/winlogon/sas.c index c90121db5f4..8e1981cabf7 100644 --- a/reactos/base/system/winlogon/sas.c +++ b/reactos/base/system/winlogon/sas.c @@ -873,13 +873,14 @@ SASWindowProc( /* Save the Session pointer */ SetWindowLongPtrW(hwndDlg, GWLP_USERDATA, (LONG_PTR)Session); - if (GetSetupType() == 0) + if (GetSetupType()) return TRUE; return RegisterHotKeys(Session, hwndDlg); } case WM_DESTROY: { - UnregisterHotKeys(Session, hwndDlg); + if (!GetSetupType()) + UnregisterHotKeys(Session, hwndDlg); return TRUE; } case WM_SETTINGCHANGE: