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/StatusPlugins/AdvancedAutoAway | |
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/StatusPlugins/AdvancedAutoAway')
-rw-r--r-- | plugins/StatusPlugins/AdvancedAutoAway/advancedautoaway.cpp | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/plugins/StatusPlugins/AdvancedAutoAway/advancedautoaway.cpp b/plugins/StatusPlugins/AdvancedAutoAway/advancedautoaway.cpp index 5a3a801732..a28c94f75f 100644 --- a/plugins/StatusPlugins/AdvancedAutoAway/advancedautoaway.cpp +++ b/plugins/StatusPlugins/AdvancedAutoAway/advancedautoaway.cpp @@ -269,10 +269,9 @@ static VOID CALLBACK AutoAwayTimer(HWND hwnd,UINT message,UINT_PTR idEvent,DWORD if ( aas.optionFlags & FLAG_MONITORMIRANDA )
mouseStationaryTimer = (GetTickCount() - lastMirandaInput)/1000;
else {
- LASTINPUTINFO lii = { 0 };
- lii.cbSize = sizeof(lii);
- GetLastInputInfo(&lii);
- mouseStationaryTimer = (GetTickCount()-lii.dwTime)/1000;
+ LASTINPUTINFO ii = { sizeof(ii) };
+ GetLastInputInfo(&ii);
+ mouseStationaryTimer = (GetTickCount() - ii.dwTime)/1000;
}
int sts1Time = aas.awayTime * SECS_PER_MINUTE;
|