diff options
author | Vlad Mironov <mironych@googlemail.com> | 2012-12-10 13:22:55 +0000 |
---|---|---|
committer | Vlad Mironov <mironych@googlemail.com> | 2012-12-10 13:22:55 +0000 |
commit | 042c8d7b52216f2f9fa20b498716ccbec3b000bf (patch) | |
tree | 28fe419ba6b68ba122a9ce0f6ac5029e150c921e /plugins/TrafficCounter/src | |
parent | c75c4c955af1c261091a86f2e4933a9856f118a1 (diff) |
TrafficCounter: fixed crash when displaying tooltip
git-svn-id: http://svn.miranda-ng.org/main/trunk@2712 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/TrafficCounter/src')
-rw-r--r-- | plugins/TrafficCounter/src/TrafficCounter.c | 11 |
1 files changed, 5 insertions, 6 deletions
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);
}
}
}
|