[PATCH 1/1] user32: Plug icon handle leak in MDI_AugmentFrameMenu (Coverity).
Alex Henrie
wine at gitlab.winehq.org
Sun May 29 23:08:03 CDT 2022
From: Alex Henrie <alexhenrie24 at gmail.com>
Signed-off-by: Alex Henrie <alexhenrie24 at 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 e6a391e03c3..ca401293930 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;
--
GitLab
https://gitlab.winehq.org/wine/wine/-/merge_requests/149
More information about the wine-devel
mailing list