From abfca5716ea01b4225e8d7fc3723993ce90ac9af Mon Sep 17 00:00:00 2001 From: Johannes Anderwald Date: Wed, 17 Oct 2007 17:37:02 +0000 Subject: [PATCH] - fix a bug - fix identation - only register hotkeys when not being in setup See issue #2684 for more details. svn path=/trunk/; revision=29644 --- reactos/base/system/winlogon/sas.c | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/reactos/base/system/winlogon/sas.c b/reactos/base/system/winlogon/sas.c index b5bc6ae1021..973ffcfdf29 100644 --- a/reactos/base/system/winlogon/sas.c +++ b/reactos/base/system/winlogon/sas.c @@ -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: {