summaryrefslogtreecommitdiff
path: root/plugins/KeyboardNotify
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2013-09-28 11:21:32 +0000
committerGeorge Hazan <george.hazan@gmail.com>2013-09-28 11:21:32 +0000
commit30bd869d78ea7d67904e6fa46c205e3a8697c6fc (patch)
tree361f46f51f495f4b27a1122f1018bb0ff2e8f2f5 /plugins/KeyboardNotify
parentd4c7112ac94d71397957c2bab796167cc91532fd (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/KeyboardNotify')
-rw-r--r--plugins/KeyboardNotify/src/main.cpp8
1 files changed, 3 insertions, 5 deletions
diff --git a/plugins/KeyboardNotify/src/main.cpp b/plugins/KeyboardNotify/src/main.cpp
index bf5a170972..f6c4385ede 100644
--- a/plugins/KeyboardNotify/src/main.cpp
+++ b/plugins/KeyboardNotify/src/main.cpp
@@ -320,11 +320,9 @@ static void FlashThreadFunction()
break;
if (bFlashUntil & UNTIL_REATTENDED) {
if (bMirandaOrWindows == ACTIVE_WINDOWS && !bEmulateKeypresses) {
- LASTINPUTINFO lii;
- ZeroMemory(&lii, sizeof(lii));
- lii.cbSize = sizeof(lii);
- GetLastInputInfo(&lii);
- dwLastInput = lii.dwTime;
+ LASTINPUTINFO ii = { sizeof(ii) };
+ GetLastInputInfo(&ii);
+ dwLastInput = ii.dwTime;
}
if (dwLastInput > dwEventStarted)
break;