mirror of
https://github.com/reactos/reactos.git
synced 2024-09-06 19:02:32 +00:00
- fix a bug
- fix identation - only register hotkeys when not being in setup See issue #2684 for more details. svn path=/trunk/; revision=29644
This commit is contained in:
parent
f0ad2263bf
commit
abfca5716e
|
@ -267,9 +267,9 @@ cleanup:
|
|||
RemoveStatusMessage(Session);
|
||||
if (!ret)
|
||||
{
|
||||
Session->UserToken = NULL;
|
||||
CloseHandle(Session->UserToken);
|
||||
}
|
||||
CloseHandle(Session->UserToken);
|
||||
Session->UserToken = NULL;
|
||||
}
|
||||
return ret;
|
||||
}
|
||||
|
||||
|
@ -869,8 +869,10 @@ SASWindowProc(
|
|||
|
||||
/* Save the Session pointer */
|
||||
SetWindowLongPtrW(hwndDlg, GWLP_USERDATA, (LONG_PTR)Session);
|
||||
|
||||
return RegisterHotKeys(Session, hwndDlg);
|
||||
if (!GetSetupType())
|
||||
{
|
||||
return RegisterHotKeys(Session, hwndDlg);
|
||||
}
|
||||
}
|
||||
case WM_DESTROY:
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue