Commit 8caed63e authored by Andrew Talbot's avatar Andrew Talbot Committed by Alexandre Julliard

quartz: Remove unneeded casts.

parent 3c14ae66
...@@ -113,7 +113,7 @@ static DWORD WINAPI SystemClockAdviseThread(LPVOID lpParam) { ...@@ -113,7 +113,7 @@ static DWORD WINAPI SystemClockAdviseThread(LPVOID lpParam) {
/** First SingleShots Advice: sorted list */ /** First SingleShots Advice: sorted list */
for (it = This->pSingleShotAdvise; NULL != it && (it->rtBaseTime + it->rtIntervalTime) <= curTime; it = it->next) { for (it = This->pSingleShotAdvise; NULL != it && (it->rtBaseTime + it->rtIntervalTime) <= curTime; it = it->next) {
/** send event ... */ /** send event ... */
SetEvent((HANDLE) it->hEvent); SetEvent(it->hEvent);
/** ... and Release it */ /** ... and Release it */
QUARTZ_RemoveAviseEntryFromQueue(This, it); QUARTZ_RemoveAviseEntryFromQueue(This, it);
CoTaskMemFree(it); CoTaskMemFree(it);
...@@ -125,7 +125,7 @@ static DWORD WINAPI SystemClockAdviseThread(LPVOID lpParam) { ...@@ -125,7 +125,7 @@ static DWORD WINAPI SystemClockAdviseThread(LPVOID lpParam) {
if (it->rtBaseTime <= curTime) { if (it->rtBaseTime <= curTime) {
DWORD nPeriods = (DWORD) ((curTime - it->rtBaseTime) / it->rtIntervalTime); DWORD nPeriods = (DWORD) ((curTime - it->rtBaseTime) / it->rtIntervalTime);
/** Release the semaphore ... */ /** Release the semaphore ... */
ReleaseSemaphore((HANDLE) it->hEvent, nPeriods, NULL); ReleaseSemaphore(it->hEvent, nPeriods, NULL);
/** ... and refresh time */ /** ... and refresh time */
it->rtBaseTime += nPeriods * it->rtIntervalTime; it->rtBaseTime += nPeriods * it->rtIntervalTime;
/*assert( it->rtBaseTime + it->rtIntervalTime < curTime );*/ /*assert( it->rtBaseTime + it->rtIntervalTime < curTime );*/
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment