From 042c8d7b52216f2f9fa20b498716ccbec3b000bf Mon Sep 17 00:00:00 2001 From: Vlad Mironov Date: Mon, 10 Dec 2012 13:22:55 +0000 Subject: TrafficCounter: fixed crash when displaying tooltip git-svn-id: http://svn.miranda-ng.org/main/trunk@2712 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- plugins/TrafficCounter/src/TrafficCounter.c | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) (limited to 'plugins/TrafficCounter/src') diff --git a/plugins/TrafficCounter/src/TrafficCounter.c b/plugins/TrafficCounter/src/TrafficCounter.c index b7fe86b3d6..0a4b7b48a3 100644 --- a/plugins/TrafficCounter/src/TrafficCounter.c +++ b/plugins/TrafficCounter/src/TrafficCounter.c @@ -19,6 +19,7 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. #include "commonheaders.h" #include "m_skin_eng.h" +#include "m_tipper.h" /*-------------------------------------------------------------------------------------------------------------------*/ //GLOBAL @@ -1427,13 +1428,11 @@ LRESULT CALLBACK TrafficCounterWndProc_MW(HWND hwnd, UINT msg, WPARAM wParam, LP ti.rcItem.bottom = TooltipPosition.y + 10; ti.cbSize = sizeof( ti ); TooltipText = variables_parsedup(Traffic_TooltipFormat, NULL, NULL); -#ifdef _UNICODE - CallService("mToolTip/ShowTipW", (WPARAM)TooltipText, (LPARAM)&ti); -#else - CallService("mToolTip/ShowTip", (WPARAM)TooltipText, (LPARAM)&ti); -#endif + + CallService(MS_TIPPER_SHOWTIPW, (WPARAM)TooltipText, (LPARAM)&ti); + TooltipShowing = TRUE; - free(TooltipText); + mir_free(TooltipText); } } } -- cgit v1.2.3