mirror of
https://github.com/reactos/reactos.git
synced 2025-01-03 21:09:19 +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;
|
||||
NTSTATUS Status;
|
||||
PTHREADINFO pti;
|
||||
DECLARE_RETURN(BOOL);
|
||||
|
||||
pti = PsGetCurrentThreadWin32Thread();
|
||||
|
||||
TRACE("Enter NtUserCloseDesktop\n");
|
||||
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);
|
||||
|
||||
Status = IntValidateDesktopHandle(
|
||||
|
|
Loading…
Reference in a new issue