https://git.reactos.org/?p=reactos.git;a=commitdiff;h=056bb94edc3422fe9ab9f…
commit 056bb94edc3422fe9ab9f6c2b45948b26ee2e2f0
Author: Katayama Hirofumi MZ <katayama.hirofumi.mz(a)gmail.com>
AuthorDate: Thu May 5 22:53:15 2022 +0900
Commit: GitHub <noreply(a)github.com>
CommitDate: Thu May 5 22:53:15 2022 +0900
[NTUSER] NtUserBuildHwndList should return NTSTATUS (#4487)
A follow-up to #4485 (c2a51c7). CORE-18173
---
win32ss/user/ntuser/window.c | 10 +++++-----
1 file changed, 5 insertions(+), 5 deletions(-)
diff --git a/win32ss/user/ntuser/window.c b/win32ss/user/ntuser/window.c
index 5f588406bdd..b6a2c28bab2 100644
--- a/win32ss/user/ntuser/window.c
+++ b/win32ss/user/ntuser/window.c
@@ -1514,7 +1514,7 @@ NtUserBuildHwndList(
ULONG dwCount = 0;
if (pcHwndNeeded == NULL)
- return ERROR_INVALID_PARAMETER;
+ return STATUS_INVALID_PARAMETER;
UserEnterExclusive();
@@ -1527,7 +1527,7 @@ NtUserBuildHwndList(
{
if(hDesktop == NULL && !(Desktop = IntGetActiveDesktop()))
{
- Status = ERROR_INVALID_HANDLE;
+ Status = STATUS_INVALID_HANDLE;
goto Quit;
}
@@ -1539,7 +1539,7 @@ NtUserBuildHwndList(
&Desktop);
if(!NT_SUCCESS(Status))
{
- Status = ERROR_INVALID_HANDLE;
+ Status = STATUS_INVALID_HANDLE;
goto Quit;
}
}
@@ -1615,14 +1615,14 @@ NtUserBuildHwndList(
if (!NT_SUCCESS(Status))
{
ERR("Thread Id is not valid!\n");
- Status = ERROR_INVALID_PARAMETER;
+ Status = STATUS_INVALID_PARAMETER;
goto Quit;
}
if (!(W32Thread = (PTHREADINFO)Thread->Tcb.Win32Thread))
{
ObDereferenceObject(Thread);
TRACE("Tried to enumerate windows of a non gui thread\n");
- Status = ERROR_INVALID_PARAMETER;
+ Status = STATUS_INVALID_PARAMETER;
goto Quit;
}