- only register hotkey when setup is active
authorJohannes Anderwald <johannes.anderwald@reactos.org>
Thu, 18 Oct 2007 21:09:45 +0000 (21:09 +0000)
committerJohannes Anderwald <johannes.anderwald@reactos.org>
Thu, 18 Oct 2007 21:09:45 +0000 (21:09 +0000)
- should fix bug 2684
See issue #2684 for more details.

svn path=/trunk/; revision=29662

reactos/base/system/winlogon/sas.c

index c90121d..8e1981c 100644 (file)
@@ -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: