Module: wine Branch: master Commit: 001d78a58257b67871924774485ce226f4b87a9c URL: https://source.winehq.org/git/wine.git/?a=commit;h=001d78a58257b678719247744...
Author: Alex Henrie alexhenrie24@gmail.com Date: Sun May 29 16:37:19 2022 -0600
user32: Plug icon handle leak in MDI_AugmentFrameMenu (Coverity).
Signed-off-by: Alex Henrie alexhenrie24@gmail.com
---
dlls/user32/mdi.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/dlls/user32/mdi.c b/dlls/user32/mdi.c index 26772aed763..11c17a6dbd8 100644 --- a/dlls/user32/mdi.c +++ b/dlls/user32/mdi.c @@ -859,7 +859,7 @@ static BOOL MDI_AugmentFrameMenu( HWND frame, HWND hChild ) hIcon = (HICON)GetClassLongPtrW(hChild, GCLP_HICON); if (!hIcon) hIcon = LoadImageW(0, (LPWSTR)IDI_WINLOGO, IMAGE_ICON, GetSystemMetrics(SM_CXSMICON), - GetSystemMetrics(SM_CYSMICON), LR_DEFAULTCOLOR); + GetSystemMetrics(SM_CYSMICON), LR_DEFAULTCOLOR | LR_SHARED); if (hIcon) { HDC hMemDC;