mirror of
https://github.com/reactos/reactos.git
synced 2025-01-05 22:12:46 +00:00
[win32k]
- fix some more tests in user32:winstation svn path=/trunk/; revision=55522
This commit is contained in:
parent
ed481636c6
commit
af8d992a9e
1 changed files with 10 additions and 0 deletions
|
@ -1243,11 +1243,21 @@ NtUserCloseDesktop(HDESK hDesktop)
|
||||||
{
|
{
|
||||||
PDESKTOP Object;
|
PDESKTOP Object;
|
||||||
NTSTATUS Status;
|
NTSTATUS Status;
|
||||||
|
PTHREADINFO pti;
|
||||||
DECLARE_RETURN(BOOL);
|
DECLARE_RETURN(BOOL);
|
||||||
|
|
||||||
|
pti = PsGetCurrentThreadWin32Thread();
|
||||||
|
|
||||||
TRACE("Enter NtUserCloseDesktop\n");
|
TRACE("Enter NtUserCloseDesktop\n");
|
||||||
UserEnterExclusive();
|
UserEnterExclusive();
|
||||||
|
|
||||||
|
if( hDesktop == pti->hdesk || hDesktop == pti->ppi->hdeskStartup)
|
||||||
|
{
|
||||||
|
ERR("Attempted to close thread desktop\n");
|
||||||
|
EngSetLastError(ERROR_BUSY);
|
||||||
|
RETURN(FALSE);
|
||||||
|
}
|
||||||
|
|
||||||
TRACE("About to close desktop handle (0x%X)\n", hDesktop);
|
TRACE("About to close desktop handle (0x%X)\n", hDesktop);
|
||||||
|
|
||||||
Status = IntValidateDesktopHandle(
|
Status = IntValidateDesktopHandle(
|
||||||
|
|
Loading…
Reference in a new issue