summaryrefslogtreecommitdiff
path: root/src/core
diff options
context:
space:
mode:
authorGeorge Hazan <ghazan@miranda.im>2019-08-26 13:41:45 +0300
committerGeorge Hazan <ghazan@miranda.im>2019-08-26 13:41:45 +0300
commitcb2efce1a4fe9c89c5fef63b3aca63f3e63983fc (patch)
treeaee121fae12956a856e6cd72f2a45d3e4757cd1a /src/core
parentc43051a42bfd2457f6cf5fca9698db0d55b73993 (diff)
obsolete services removed from core & replaced with functions
Diffstat (limited to 'src/core')
-rw-r--r--src/core/stdautoaway/src/idle.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/core/stdautoaway/src/idle.cpp b/src/core/stdautoaway/src/idle.cpp
index 16dc7a1723..b378329686 100644
--- a/src/core/stdautoaway/src/idle.cpp
+++ b/src/core/stdautoaway/src/idle.cpp
@@ -31,8 +31,7 @@ int IdleOptInit(WPARAM wParam, LPARAM);
static int IdleObject_IsUserIdle()
{
if (g_plugin.bIdleMethod) {
- DWORD dwTick;
- CallService(MS_SYSTEM_GETIDLE, 0, (LPARAM)&dwTick);
+ DWORD dwTick = Miranda_GetIdle();
return GetTickCount() - dwTick > (g_plugin.iIdleTime1st * 60 * 1000);
}