mirror of
https://github.com/ApfelTeeSaft/reactos.git
synced 2026-08-30 04:13:33 +00:00
- only register hotkey when setup is active
- should fix bug 2684 See issue #2684 for more details. svn path=/trunk/; revision=29662
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user