From 63174c2f3616af55449a861cf24557d0ac9ab85d Mon Sep 17 00:00:00 2001 From: Michael Stefaniuc Date: Wed, 18 Feb 2015 00:08:39 +0100 Subject: [PATCH] user32: IDI_WINLOGO is already an int resource (PVS-Studio). --- dlls/user32/mdi.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/dlls/user32/mdi.c b/dlls/user32/mdi.c index 8ef7214bc35..11d56797d2b 100644 --- a/dlls/user32/mdi.c +++ b/dlls/user32/mdi.c @@ -866,7 +866,8 @@ static BOOL MDI_AugmentFrameMenu( HWND frame, HWND hChild ) if (!hIcon) hIcon = (HICON)SendMessageW(hChild, WM_GETICON, ICON_BIG, 0); if (!hIcon) - hIcon = LoadImageW(0, MAKEINTRESOURCEW(IDI_WINLOGO), IMAGE_ICON, GetSystemMetrics(SM_CXSMICON), GetSystemMetrics(SM_CYSMICON), LR_DEFAULTCOLOR); + hIcon = LoadImageW(0, (LPWSTR)IDI_WINLOGO, IMAGE_ICON, GetSystemMetrics(SM_CXSMICON), + GetSystemMetrics(SM_CYSMICON), LR_DEFAULTCOLOR); if (hIcon) { HDC hMemDC;