mirror of
https://github.com/reactos/reactos.git
synced 2025-07-27 13:13:02 +00:00
[WINLOGON] WlxSwitchDesktopToUser/Winlogon(): ensure the calling thread is assigned the specified desktop (#8130)
Invoke SetThreadDesktop() after a successful SwitchDesktop() call.
This commit is contained in:
parent
14894f2e27
commit
b3e56c95ef
1 changed files with 10 additions and 2 deletions
|
@ -411,10 +411,14 @@ WlxSwitchDesktopToUser(
|
|||
HANDLE hWlx)
|
||||
{
|
||||
PWLSESSION Session = (PWLSESSION)hWlx;
|
||||
BOOL bRet;
|
||||
|
||||
TRACE("WlxSwitchDesktopToUser()\n");
|
||||
|
||||
return (int)SwitchDesktop(Session->ApplicationDesktop);
|
||||
bRet = SwitchDesktop(Session->ApplicationDesktop);
|
||||
if (bRet)
|
||||
SetThreadDesktop(Session->ApplicationDesktop);
|
||||
return (int)bRet;
|
||||
}
|
||||
|
||||
/*
|
||||
|
@ -426,10 +430,14 @@ WlxSwitchDesktopToWinlogon(
|
|||
HANDLE hWlx)
|
||||
{
|
||||
PWLSESSION Session = (PWLSESSION)hWlx;
|
||||
BOOL bRet;
|
||||
|
||||
TRACE("WlxSwitchDesktopToWinlogon()\n");
|
||||
|
||||
return (int)SwitchDesktop(Session->WinlogonDesktop);
|
||||
bRet = SwitchDesktop(Session->WinlogonDesktop);
|
||||
if (bRet)
|
||||
SetThreadDesktop(Session->WinlogonDesktop);
|
||||
return (int)bRet;
|
||||
}
|
||||
|
||||
/*
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue