- Switch to the winlogon desktop when we show the LogedOn dialog

svn path=/trunk/; revision=58785
This commit is contained in:
Giannis Adamopoulos 2013-04-19 08:12:10 +00:00
parent 25aef73037
commit 7aecedf790

View file

@ -322,6 +322,9 @@ GUILoggedOnSAS(
return WLX_SAS_ACTION_NONE; return WLX_SAS_ACTION_NONE;
} }
result = pgContext->pWlxFuncs->WlxSwitchDesktopToWinlogon(
pgContext->hWlx);
result = pgContext->pWlxFuncs->WlxDialogBoxParam( result = pgContext->pWlxFuncs->WlxDialogBoxParam(
pgContext->hWlx, pgContext->hWlx,
pgContext->hDllInstance, pgContext->hDllInstance,
@ -329,12 +332,20 @@ GUILoggedOnSAS(
GetDesktopWindow(), GetDesktopWindow(),
LoggedOnWindowProc, LoggedOnWindowProc,
(LPARAM)pgContext); (LPARAM)pgContext);
if (result >= WLX_SAS_ACTION_LOGON &&
result <= WLX_SAS_ACTION_SWITCH_CONSOLE) if (result < WLX_SAS_ACTION_LOGON ||
result > WLX_SAS_ACTION_SWITCH_CONSOLE)
{ {
return result; result = WLX_SAS_ACTION_NONE;
} }
return WLX_SAS_ACTION_NONE;
if (result == WLX_SAS_ACTION_NONE)
{
result = pgContext->pWlxFuncs->WlxSwitchDesktopToUser(
pgContext->hWlx);
}
return result;
} }
static INT_PTR CALLBACK static INT_PTR CALLBACK