Author: gadamopoulos
Date: Fri Apr 19 08:12:10 2013
New Revision: 58785
URL:
http://svn.reactos.org/svn/reactos?rev=58785&view=rev
Log:
[msgina]
- Switch to the winlogon desktop when we show the LogedOn dialog
Modified:
trunk/reactos/dll/win32/msgina/gui.c
Modified: trunk/reactos/dll/win32/msgina/gui.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/msgina/gui.c?rev…
==============================================================================
--- trunk/reactos/dll/win32/msgina/gui.c [iso-8859-1] (original)
+++ trunk/reactos/dll/win32/msgina/gui.c [iso-8859-1] Fri Apr 19 08:12:10 2013
@@ -322,6 +322,9 @@
return WLX_SAS_ACTION_NONE;
}
+ result = pgContext->pWlxFuncs->WlxSwitchDesktopToWinlogon(
+ pgContext->hWlx);
+
result = pgContext->pWlxFuncs->WlxDialogBoxParam(
pgContext->hWlx,
pgContext->hDllInstance,
@@ -329,12 +332,20 @@
GetDesktopWindow(),
LoggedOnWindowProc,
(LPARAM)pgContext);
- if (result >= WLX_SAS_ACTION_LOGON &&
- result <= WLX_SAS_ACTION_SWITCH_CONSOLE)
- {
- return result;
- }
- return WLX_SAS_ACTION_NONE;
+
+ if (result < WLX_SAS_ACTION_LOGON ||
+ result > WLX_SAS_ACTION_SWITCH_CONSOLE)
+ {
+ result = WLX_SAS_ACTION_NONE;
+ }
+
+ if (result == WLX_SAS_ACTION_NONE)
+ {
+ result = pgContext->pWlxFuncs->WlxSwitchDesktopToUser(
+ pgContext->hWlx);
+ }
+
+ return result;
}
static INT_PTR CALLBACK