From: Serge Gautherie <32623169+SergeGautherie@users.noreply.github.com> Date: Tue, 26 May 2020 18:25:39 +0000 (+0200) Subject: [WIN32K:NTUSER] NC_IconForWindow(): Remove redundant if() (#2842) X-Git-Url: https://git.reactos.org/?p=reactos.git;a=commitdiff_plain;h=938df97b54aa0d61d6c2134b5e50d0a2873c0bd6 [WIN32K:NTUSER] NC_IconForWindow(): Remove redundant if() (#2842) No impact. Detected by Cppcheck: identicalInnerCondition. Addendum to 98060c28c8b051bc4cfd460bd008a2eff125658e (r60622). --- diff --git a/win32ss/user/ntuser/nonclient.c b/win32ss/user/ntuser/nonclient.c index 0c7dac84c48..59bd57e2f3d 100644 --- a/win32ss/user/ntuser/nonclient.c +++ b/win32ss/user/ntuser/nonclient.c @@ -696,7 +696,7 @@ PCURICON_OBJECT FASTCALL NC_IconForWindow( PWND pWnd ) // it does not use the default icon! And it does not check for DS_MODALFRAME. if (!hIcon && !(pWnd->ExStyle & WS_EX_DLGMODALFRAME)) { - if (!hIcon) hIcon = gpsi->hIconSmWindows; // Both are IDI_WINLOGO Small + hIcon = gpsi->hIconSmWindows; // Both are IDI_WINLOGO Small if (!hIcon) hIcon = gpsi->hIconWindows; // Reg size. } if (hIcon)