Skip to content

Commit

Permalink
[NTUSER] window.c: Apply suggestions from code review
Browse files Browse the repository at this point in the history
  • Loading branch information
TAN-Gaming committed Dec 12, 2023
1 parent 6ef654b commit 20a641d
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions win32ss/user/ntuser/window.c
Original file line number Diff line number Diff line change
Expand Up @@ -3421,7 +3421,7 @@ NtUserGetAncestor(HWND hWnd, UINT Type)
Ancestor = UserGetAncestor(Window, Type);
/* fixme: can UserGetAncestor ever return NULL for a valid window? */

Ret = (Ancestor ? Ancestor->head.h : NULL);
Ret = (Ancestor ? UserHMGetHandle(Ancestor) : NULL);
}

TRACE("Leave NtUserGetAncestor, ret=%p\n", Ret);
Expand Down Expand Up @@ -3504,7 +3504,7 @@ NtUserGetComboBoxInfo(
// Pass the user pointer, it was already probed.
if ((Wnd->pcls->atomClassName != gpsi->atomSysClass[ICLS_COMBOBOX]) && Wnd->fnid != FNID_COMBOBOX)
{
Ret = (BOOL)co_IntSendMessage(Wnd->head.h, CB_GETCOMBOBOXINFO, 0, (LPARAM)pcbi);
Ret = (BOOL)co_IntSendMessage(UserHMGetHandle(Wnd), CB_GETCOMBOBOXINFO, 0, (LPARAM)pcbi);
goto Exit;
}

Expand Down Expand Up @@ -3594,7 +3594,7 @@ NtUserGetListBoxInfo(

if ((Wnd->pcls->atomClassName != gpsi->atomSysClass[ICLS_LISTBOX]) && Wnd->fnid != FNID_LISTBOX)
{
Ret = (DWORD)co_IntSendMessage(Wnd->head.h, LB_GETLISTBOXINFO, 0, 0);
Ret = (DWORD)co_IntSendMessage(UserHMGetHandle(Wnd), LB_GETLISTBOXINFO, 0, 0);
goto Exit;
}

Expand Down Expand Up @@ -3692,7 +3692,7 @@ HWND FASTCALL UserGetShellWindow(VOID)
if (!NT_SUCCESS(Status))
{
SetLastNtError(Status);
return (HWND)0;
return NULL;
}

Ret = (HWND)WinStaObject->ShellWindow;
Expand Down

0 comments on commit 20a641d

Please sign in to comment.