From c9265783b1bf4a9cea1fd63e633ced6e66a154fc Mon Sep 17 00:00:00 2001 From: George Hazan Date: Sun, 10 Dec 2017 15:24:14 +0300 Subject: Miranda idle code cleaning --- src/core/stdautoaway/src/autoaway.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/core/stdautoaway') diff --git a/src/core/stdautoaway/src/autoaway.cpp b/src/core/stdautoaway/src/autoaway.cpp index c1ebc6bbe5..c21b77253f 100644 --- a/src/core/stdautoaway/src/autoaway.cpp +++ b/src/core/stdautoaway/src/autoaway.cpp @@ -47,8 +47,8 @@ static void Proto_SetStatus(const char *szProto, unsigned status) static int AutoAwayEvent(WPARAM, LPARAM lParam) { - MIRANDA_IDLE_INFO mii = { sizeof(mii) }; - CallService(MS_IDLE_GETIDLEINFO, 0, (LPARAM)&mii); + MIRANDA_IDLE_INFO mii; + Idle_GetInfo(mii); if (mii.idlesoundsoff) iBreakSounds = (lParam & IDF_ISIDLE) != 0; -- cgit v1.2.3