mirror of
https://github.com/reactos/reactos.git
synced 2025-02-25 09:50:02 +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:
parent
c44c89a6ab
commit
33aa43c80f
1 changed files with 3 additions and 2 deletions
|
@ -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:
|
||||
|
|
Loading…
Reference in a new issue