diff options
Diffstat (limited to 'src/core')
-rw-r--r-- | src/core/stdautoaway/src/idle.cpp | 3 |
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); } |