diff options
author | Robert Pösel <robyer@seznam.cz> | 2013-08-07 07:50:41 +0000 |
---|---|---|
committer | Robert Pösel <robyer@seznam.cz> | 2013-08-07 07:50:41 +0000 |
commit | 20928b2140adc81e9b3fcbbcc855d7e6ed2d4358 (patch) | |
tree | 5f5cc88a1b6237d195a4a21437882c9b48874bac /plugins/PluginUpdater/src/Utils.cpp | |
parent | f7ad58e2507c6e70cf3293c7d23ed4d18f454751 (diff) |
Plugin Updater: Fixed automatic time-interval checking
git-svn-id: http://svn.miranda-ng.org/main/trunk@5609 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/PluginUpdater/src/Utils.cpp')
-rw-r--r-- | plugins/PluginUpdater/src/Utils.cpp | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/plugins/PluginUpdater/src/Utils.cpp b/plugins/PluginUpdater/src/Utils.cpp index 7d6d8c754d..e92ff760f5 100644 --- a/plugins/PluginUpdater/src/Utils.cpp +++ b/plugins/PluginUpdater/src/Utils.cpp @@ -400,12 +400,8 @@ void InitTimer(int type) break;
}
- _int64 qwDueTime = -10000i64 * interval;
-
LARGE_INTEGER li = {0};
- li.LowPart = (DWORD) ( qwDueTime & 0xFFFFFFFF );
- li.HighPart = (LONG) ( qwDueTime >> 32 );
-
+ li.QuadPart = -1 * (interval * 10000LL);
SetWaitableTimer(Timer, &li, 0, TimerAPCProc, NULL, 0);
}
}
|