From 79acfe47ac899afe27a133fd65a67458226dca88 Mon Sep 17 00:00:00 2001 From: Thamatip Chitpong Date: Fri, 29 Dec 2023 21:09:43 +0700 Subject: [PATCH] Apply suggestions from code review Suggested by HBelusca. --- win32ss/user/ntuser/focus.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/win32ss/user/ntuser/focus.c b/win32ss/user/ntuser/focus.c index db072970f5f28..108ef8414dd57 100644 --- a/win32ss/user/ntuser/focus.c +++ b/win32ss/user/ntuser/focus.c @@ -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; @@ -1287,7 +1287,7 @@ 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); } @@ -1295,7 +1295,7 @@ UserSetActiveWindow( _In_opt_ PWND Wnd ) 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!