Commit 4a200821 authored by John Sullivan's avatar John Sullivan Committed by Alexandre Julliard

user32: Call DestroyIcon() to delete icon handles in CopyImage().

parent 01111b94
......@@ -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;
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment