Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
Suggested by HBelusca.
  • Loading branch information
TAN-Gaming committed Dec 29, 2023
1 parent 5847fae commit 79acfe4
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions win32ss/user/ntuser/focus.c
Original file line number Diff line number Diff line change
Expand Up @@ -879,7 +879,7 @@ co_IntSetForegroundMessageQueue(
}
else
{
//ERR("SFWAMQ : SAW I pti 0x%p hWnd 0x%p\n", ptiChg, UserHMGetHandle(Wnd));
//ERR("SFWAMQ : SAW I pti 0x%p hWnd 0x%p\n", ptiChg, Wnd ? UserHMGetHandle(Wnd) : NULL);
Ret = co_IntSetActiveWindow(Wnd, MouseActivate, TRUE/*Type*/, FALSE);
//if (!Ret) ERR("SFWAMQ : ISAW : return error\n");
return Ret;
Expand Down Expand Up @@ -1287,15 +1287,15 @@ UserSetActiveWindow( _In_opt_ PWND Wnd )
!(gpqForegroundPrev->spwndActivePrev->state2 & WNDS2_BOTTOMMOST) &&
(Wnd = VerifyWnd(gpqForegroundPrev->spwndActivePrev)) != NULL )
{
TRACE("USAW:PAW hwnd %p\n", Wnd ? UserHMGetHandle(Wnd) : NULL);
TRACE("USAW:PAW hwnd %p\n", UserHMGetHandle(Wnd));
return IntUserSetActiveWindow(Wnd, FALSE, TRUE, FALSE);
}

// Activate anyone but the active window.
if ( pti->MessageQueue->spwndActive &&
(Wnd = VerifyWnd(pti->MessageQueue->spwndActive)) != NULL )
{
//ERR("USAW:AOWM hwnd %p\n", Wnd ? UserHMGetHandle(Wnd) : NULL);
//ERR("USAW:AOWM hwnd %p\n", UserHMGetHandle(Wnd));
if (!ActivateOtherWindowMin(Wnd))
{
// Okay, now go find someone else to play with!
Expand Down

0 comments on commit 79acfe4

Please sign in to comment.