diff options
author | George Hazan <george.hazan@gmail.com> | 2013-09-28 11:21:32 +0000 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2013-09-28 11:21:32 +0000 |
commit | 30bd869d78ea7d67904e6fa46c205e3a8697c6fc (patch) | |
tree | 361f46f51f495f4b27a1122f1018bb0ff2e8f2f5 /plugins/BossKeyPlus/src | |
parent | d4c7112ac94d71397957c2bab796167cc91532fd (diff) |
fix for keyboard idle state interruption
git-svn-id: http://svn.miranda-ng.org/main/trunk@6256 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/BossKeyPlus/src')
-rw-r--r-- | plugins/BossKeyPlus/src/BossKeyIdle.cpp | 6 |
1 files changed, 2 insertions, 4 deletions
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;
|