John Sullivan : user32: Call DestroyIcon() to delete icon handles in CopyImage().
Alexandre Julliard
julliard at winehq.org
Thu Dec 16 16:39:21 CST 2021
Module: wine
Branch: master
Commit: 4a200821672dfe719dc5b20df853e719678496b7
URL: https://source.winehq.org/git/wine.git/?a=commit;h=4a200821672dfe719dc5b20df853e719678496b7
Author: John Sullivan <jswinebz at kanargh.org.uk>
Date: Thu Dec 16 11:58:37 2021 -0600
user32: Call DestroyIcon() to delete icon handles in CopyImage().
Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=52207
Signed-off-by: Zebediah Figura <zfigura at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>
---
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 828c88de92f..582b2612688 100644
--- a/dlls/user32/cursoricon.c
+++ b/dlls/user32/cursoricon.c
@@ -3183,7 +3183,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;
}
}
More information about the wine-cvs
mailing list