From 36fd7d44957934f4fe6ddc1bb9597ae42519ad9d Mon Sep 17 00:00:00 2001 From: George Hazan Date: Tue, 12 Feb 2013 18:08:33 +0000 Subject: various PS_GETCUSTOMSTATUSICON-related issues git-svn-id: http://svn.miranda-ng.org/main/trunk@3577 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- plugins/MyDetails/src/frame.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'plugins/MyDetails') diff --git a/plugins/MyDetails/src/frame.cpp b/plugins/MyDetails/src/frame.cpp index 2922ff537e..b741c2fb4d 100644 --- a/plugins/MyDetails/src/frame.cpp +++ b/plugins/MyDetails/src/frame.cpp @@ -1265,13 +1265,13 @@ void Draw(HWND hwnd, HDC hdc_orig) HICON status_icon; if (proto->custom_status != 0 && ProtoServiceExists(proto->name, PS_GETCUSTOMSTATUSICON)) - status_icon = (HICON) CallProtoService(proto->name, PS_GETCUSTOMSTATUSICON, proto->custom_status, 0); + status_icon = (HICON)CallProtoService(proto->name, PS_GETCUSTOMSTATUSICON, proto->custom_status, LR_SHARED); else status_icon = LoadSkinnedProtoIcon(proto->name, proto->status); if (status_icon != NULL) { DrawIconEx(hdc, data->status_icon_rect.left, data->status_icon_rect.top, status_icon, ICON_SIZE, ICON_SIZE, 0, NULL, DI_NORMAL); - DeleteObject(status_icon); + Skin_ReleaseIcon(status_icon); } SelectClipRgn(hdc, NULL); -- cgit v1.2.3