Zebediah Figura : quartz/systemclock: Create the advise thread after the events it depends on.

Alexandre Julliard julliard at winehq.org
Fri Jun 21 16:44:16 CDT 2019


Module: wine
Branch: master
Commit: 2adc44df2ef9a489c48186f7da5aa6df3c16a36d
URL:    https://source.winehq.org/git/wine.git/?a=commit;h=2adc44df2ef9a489c48186f7da5aa6df3c16a36d

Author: Zebediah Figura <z.figura12 at 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 at gmail.com>
Signed-off-by: Alexandre Julliard <julliard at 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);
 }




More information about the wine-cvs mailing list