mirror of
https://github.com/reactos/reactos.git
synced 2026-05-30 14:34:57 +08: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:
@@ -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;
|
||||
}
|
||||
|
||||
/*
|
||||
|
||||
Reference in New Issue
Block a user