Zebediah Figura : quartz/systemclock: Create the advise thread after the events it depends on.
Module: wine Branch: master Commit: 2adc44df2ef9a489c48186f7da5aa6df3c16a36d URL: https://source.winehq.org/git/wine.git/?a=commit;h=2adc44df2ef9a489c48186f7d... Author: Zebediah Figura <z.figura12(a)gmail.com> Date: Thu Jun 20 20:13:16 2019 -0500 quartz/systemclock: Create the advise thread after the events it depends on. Signed-off-by: Zebediah Figura <z.figura12(a)gmail.com> Signed-off-by: Alexandre Julliard <julliard(a)winehq.org> --- dlls/quartz/systemclock.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dlls/quartz/systemclock.c b/dlls/quartz/systemclock.c index 6bb1f47..2b75c8d 100644 --- a/dlls/quartz/systemclock.c +++ b/dlls/quartz/systemclock.c @@ -103,9 +103,9 @@ static void notify_thread(struct system_clock *clock) { if (!InterlockedCompareExchange(&clock->thread_created, TRUE, FALSE)) { - clock->thread = CreateThread(NULL, 0, SystemClockAdviseThread, clock, 0, NULL); clock->notify_event = CreateEventW(NULL, FALSE, FALSE, NULL); clock->stop_event = CreateEventW(NULL, TRUE, FALSE, NULL); + clock->thread = CreateThread(NULL, 0, SystemClockAdviseThread, clock, 0, NULL); } SetEvent(clock->notify_event); }
participants (1)
-
Alexandre Julliard