Author: janderwald
Date: Wed Oct 17 21:37:02 2007
New Revision: 29644
URL:
http://svn.reactos.org/svn/reactos?rev=29644&view=rev
Log:
- fix a bug
- fix identation
- only register hotkeys when not being in setup
See issue #2684 for more details.
Modified:
trunk/reactos/base/system/winlogon/sas.c
Modified: trunk/reactos/base/system/winlogon/sas.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/base/system/winlogon/sas.c…
==============================================================================
--- trunk/reactos/base/system/winlogon/sas.c (original)
+++ trunk/reactos/base/system/winlogon/sas.c Wed Oct 17 21:37:02 2007
@@ -267,9 +267,9 @@
RemoveStatusMessage(Session);
if (!ret)
{
- Session->UserToken = NULL;
- CloseHandle(Session->UserToken);
- }
+ CloseHandle(Session->UserToken);
+ Session->UserToken = NULL;
+ }
return ret;
}
@@ -869,8 +869,10 @@
/* Save the Session pointer */
SetWindowLongPtrW(hwndDlg, GWLP_USERDATA, (LONG_PTR)Session);
-
- return RegisterHotKeys(Session, hwndDlg);
+ if (!GetSetupType())
+ {
+ return RegisterHotKeys(Session, hwndDlg);
+ }
}
case WM_DESTROY:
{