From 6f2c99a32c9e539fc61edb6b836e8805b013a180 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Thu, 21 Mar 2013 20:43:46 +0000 Subject: - unused constant MIRANDA_IDLE_INFO_SIZE_1 removed; - proper tracking of autoaway sound options; - code cleanup for MIRANDA_IDLE_INFO initialization; git-svn-id: http://svn.miranda-ng.org/main/trunk@4156 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- src/core/stdaway/sendmsg.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src/core/stdaway/sendmsg.cpp') diff --git a/src/core/stdaway/sendmsg.cpp b/src/core/stdaway/sendmsg.cpp index ac9c01d74d..c0742aeb9a 100644 --- a/src/core/stdaway/sendmsg.cpp +++ b/src/core/stdaway/sendmsg.cpp @@ -111,8 +111,7 @@ static TCHAR* GetAwayMessage(int statusMode, char *szProto) TCHAR substituteStr[128]; if ( !_tcsnicmp(dbv.ptszVal + i, _T("%time%"), 6)) { - MIRANDA_IDLE_INFO mii = {0}; - mii.cbSize = sizeof(mii); + MIRANDA_IDLE_INFO mii = { sizeof(mii) }; CallService(MS_IDLE_GETIDLEINFO, 0, (LPARAM)&mii); if (mii.idleType == 1) { -- cgit v1.2.3