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/KeyboardNotify/src/main.cpp | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) (limited to 'plugins/KeyboardNotify/src/main.cpp') 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; -- cgit v1.2.3