[ros-diffs] [janderwald] 29662: - only register hotkey when setup is active - should fix bug 2684 See issue #2684 for more details.

janderwald at svn.reactos.org janderwald at svn.reactos.org
Thu Oct 18 23:09:45 CEST 2007


Author: janderwald
Date: Fri Oct 19 01:09:45 2007
New Revision: 29662

URL: http://svn.reactos.org/svn/reactos?rev=29662&view=rev
Log:
- only register hotkey when setup is active
- should fix bug 2684
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?rev=29662&r1=29661&r2=29662&view=diff
==============================================================================
--- trunk/reactos/base/system/winlogon/sas.c (original)
+++ trunk/reactos/base/system/winlogon/sas.c Fri Oct 19 01:09:45 2007
@@ -873,13 +873,14 @@
 
 			/* 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:




More information about the Ros-diffs mailing list