summaryrefslogtreecommitdiff
path: root/plugins/KeyboardNotify
diff options
context:
space:
mode:
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;