From 30bd869d78ea7d67904e6fa46c205e3a8697c6fc Mon Sep 17 00:00:00 2001 From: George Hazan Date: Sat, 28 Sep 2013 11:21:32 +0000 Subject: fix for keyboard idle state interruption git-svn-id: http://svn.miranda-ng.org/main/trunk@6256 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- plugins/BossKeyPlus/src/BossKeyIdle.cpp | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'plugins/BossKeyPlus/src') diff --git a/plugins/BossKeyPlus/src/BossKeyIdle.cpp b/plugins/BossKeyPlus/src/BossKeyIdle.cpp index 806f3820e1..65e090de21 100644 --- a/plugins/BossKeyPlus/src/BossKeyIdle.cpp +++ b/plugins/BossKeyPlus/src/BossKeyIdle.cpp @@ -37,10 +37,8 @@ static bool IsUserIdle() return GetTickCount() - dwTick > (minutes * 60 * 1000); } - LASTINPUTINFO ii; - ZeroMemory(&ii,sizeof(ii)); - ii.cbSize=sizeof(ii); - if (GetLastInputInfo(&ii)) + LASTINPUTINFO ii = { sizeof(ii) }; + if ( GetLastInputInfo(&ii)) return GetTickCount() - ii.dwTime > (minutes * 60 * 1000); return FALSE; -- cgit v1.2.3