Zebediah Figura : quartz/systemclock: Use GetTickCount64() directly.
Alexandre Julliard
julliard at winehq.org
Fri Mar 15 15:20:00 CDT 2019
Module: wine
Branch: master
Commit: 0467b96c4fae9aca3258f05270b16093895b6b37
URL: https://source.winehq.org/git/wine.git/?a=commit;h=0467b96c4fae9aca3258f05270b16093895b6b37
Author: Zebediah Figura <z.figura12 at gmail.com>
Date: Thu Mar 14 19:10:58 2019 -0500
quartz/systemclock: Use GetTickCount64() directly.
Signed-off-by: Zebediah Figura <z.figura12 at gmail.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>
---
dlls/quartz/systemclock.c | 10 ++--------
1 file changed, 2 insertions(+), 8 deletions(-)
diff --git a/dlls/quartz/systemclock.c b/dlls/quartz/systemclock.c
index d95bd3a..511abf6 100644
--- a/dlls/quartz/systemclock.c
+++ b/dlls/quartz/systemclock.c
@@ -82,7 +82,6 @@ static DWORD WINAPI SystemClockAdviseThread(LPVOID lpParam) {
struct list *entry;
DWORD timeOut = INFINITE;
MSG msg;
- HRESULT hr;
REFERENCE_TIME curTime;
TRACE("(%p): Main Loop\n", This);
@@ -91,12 +90,8 @@ static DWORD WINAPI SystemClockAdviseThread(LPVOID lpParam) {
if (timeOut > 0) MsgWaitForMultipleObjects(0, NULL, FALSE, timeOut, QS_POSTMESSAGE|QS_SENDMESSAGE|QS_TIMER);
EnterCriticalSection(&This->safe);
- /*timeOut = IReferenceClock_OnTimerUpdated(This); */
- hr = IReferenceClock_GetTime(&This->IReferenceClock_iface, &curTime);
- if (FAILED(hr)) {
- timeOut = INFINITE;
- goto outrefresh;
- }
+
+ curTime = GetTickCount64() * 10000;
/** First SingleShots Advice: sorted list */
LIST_FOR_EACH_ENTRY_SAFE(sink, cursor, &This->single_sinks, struct advise_sink, entry)
@@ -128,7 +123,6 @@ static DWORD WINAPI SystemClockAdviseThread(LPVOID lpParam) {
timeOut = min(timeOut, ((sink->rtBaseTime + sink->rtIntervalTime) - curTime) / 10000);
}
-outrefresh:
LeaveCriticalSection(&This->safe);
while (PeekMessageW(&msg, NULL, 0, 0, PM_REMOVE)) {
More information about the wine-cvs
mailing list