Skip to content

Commit

Permalink
[NTUSER] NtUserWindowFromPoint: Don't use RETURN()
Browse files Browse the repository at this point in the history
  • Loading branch information
TAN-Gaming committed Dec 19, 2023
1 parent 24bc2c2 commit 512094e
Showing 1 changed file with 6 additions and 13 deletions.
19 changes: 6 additions & 13 deletions win32ss/user/ntuser/winpos.c
Original file line number Diff line number Diff line change
Expand Up @@ -3825,10 +3825,9 @@ HWND APIENTRY
NtUserWindowFromPoint(LONG X, LONG Y)
{
POINT pt;
HWND Ret;
PWND DesktopWindow = NULL, Window = NULL;
HWND Ret = NULL;
PWND DesktopWindow, Window;
USHORT hittest;
DECLARE_RETURN(HWND);
USER_REFERENCE_ENTRY Ref;

TRACE("Enter NtUserWindowFromPoint\n");
Expand All @@ -3847,23 +3846,17 @@ NtUserWindowFromPoint(LONG X, LONG Y)

//pti = PsGetCurrentThreadWin32Thread();
Window = co_WinPosWindowFromPoint(DesktopWindow, &pt, &hittest, FALSE);

if (Window)
{
Ret = UserHMGetHandle(Window);

RETURN( Ret);
}
}

RETURN( NULL);

CLEANUP:
if (DesktopWindow) UserDerefObjectCo(DesktopWindow);
UserDerefObjectCo(DesktopWindow);
}

TRACE("Leave NtUserWindowFromPoint, ret=%p\n", _ret_);
TRACE("Leave NtUserWindowFromPoint, ret=%p\n", Ret);
UserLeave();
END_CLEANUP;
return Ret;
}

/* EOF */

0 comments on commit 512094e

Please sign in to comment.