[PATCH 1/2] user32: Call DestroyIcon() to delete icon handles in CopyImage().
Zebediah Figura
zfigura at codeweavers.com
Thu Dec 16 11:58:37 CST 2021
From: John Sullivan <jswinebz at kanargh.org.uk>
Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=52207
Signed-off-by: Zebediah Figura <zfigura at codeweavers.com>
---
dlls/user32/cursoricon.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/dlls/user32/cursoricon.c b/dlls/user32/cursoricon.c
index 827db302a30..35f13a1a91b 100644
--- a/dlls/user32/cursoricon.c
+++ b/dlls/user32/cursoricon.c
@@ -3180,7 +3180,7 @@ HANDLE WINAPI CopyImage( HANDLE hnd, UINT type, INT desiredx,
release_icon_frame( icon, frame );
release_user_handle_ptr( icon );
- if (res && (flags & LR_COPYDELETEORG)) DeleteObject( hnd );
+ if (res && (flags & LR_COPYDELETEORG)) DestroyIcon( hnd );
return res;
}
}
--
2.34.1
More information about the wine-devel
mailing list