diff options
author | George Hazan <george.hazan@gmail.com> | 2013-03-21 20:43:46 +0000 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2013-03-21 20:43:46 +0000 |
commit | 6f2c99a32c9e539fc61edb6b836e8805b013a180 (patch) | |
tree | b0108fbaf865ad5dc7522a55f8ca272bf0df7600 /src/core/stdaway | |
parent | 365b792d3509d4e94cdc31ee4384bf458f152e59 (diff) |
- 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
Diffstat (limited to 'src/core/stdaway')
-rw-r--r-- | src/core/stdaway/sendmsg.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
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) {
|