mirror of
https://github.com/reactos/reactos.git
synced 2025-08-05 21:53:06 +00:00
[NTUSER] NtUserBuildHwndList should return NTSTATUS (#4487)
A follow-up to #4485 (c2a51c7
). CORE-18173
This commit is contained in:
parent
c2a51c7249
commit
056bb94edc
1 changed files with 5 additions and 5 deletions
|
@ -1514,7 +1514,7 @@ NtUserBuildHwndList(
|
||||||
ULONG dwCount = 0;
|
ULONG dwCount = 0;
|
||||||
|
|
||||||
if (pcHwndNeeded == NULL)
|
if (pcHwndNeeded == NULL)
|
||||||
return ERROR_INVALID_PARAMETER;
|
return STATUS_INVALID_PARAMETER;
|
||||||
|
|
||||||
UserEnterExclusive();
|
UserEnterExclusive();
|
||||||
|
|
||||||
|
@ -1527,7 +1527,7 @@ NtUserBuildHwndList(
|
||||||
{
|
{
|
||||||
if(hDesktop == NULL && !(Desktop = IntGetActiveDesktop()))
|
if(hDesktop == NULL && !(Desktop = IntGetActiveDesktop()))
|
||||||
{
|
{
|
||||||
Status = ERROR_INVALID_HANDLE;
|
Status = STATUS_INVALID_HANDLE;
|
||||||
goto Quit;
|
goto Quit;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1539,7 +1539,7 @@ NtUserBuildHwndList(
|
||||||
&Desktop);
|
&Desktop);
|
||||||
if(!NT_SUCCESS(Status))
|
if(!NT_SUCCESS(Status))
|
||||||
{
|
{
|
||||||
Status = ERROR_INVALID_HANDLE;
|
Status = STATUS_INVALID_HANDLE;
|
||||||
goto Quit;
|
goto Quit;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -1615,14 +1615,14 @@ NtUserBuildHwndList(
|
||||||
if (!NT_SUCCESS(Status))
|
if (!NT_SUCCESS(Status))
|
||||||
{
|
{
|
||||||
ERR("Thread Id is not valid!\n");
|
ERR("Thread Id is not valid!\n");
|
||||||
Status = ERROR_INVALID_PARAMETER;
|
Status = STATUS_INVALID_PARAMETER;
|
||||||
goto Quit;
|
goto Quit;
|
||||||
}
|
}
|
||||||
if (!(W32Thread = (PTHREADINFO)Thread->Tcb.Win32Thread))
|
if (!(W32Thread = (PTHREADINFO)Thread->Tcb.Win32Thread))
|
||||||
{
|
{
|
||||||
ObDereferenceObject(Thread);
|
ObDereferenceObject(Thread);
|
||||||
TRACE("Tried to enumerate windows of a non gui thread\n");
|
TRACE("Tried to enumerate windows of a non gui thread\n");
|
||||||
Status = ERROR_INVALID_PARAMETER;
|
Status = STATUS_INVALID_PARAMETER;
|
||||||
goto Quit;
|
goto Quit;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue