From 08c1f408d328e7edfb367316901c8ddd79f0de65 Mon Sep 17 00:00:00 2001 From: Alexander Medvednikov Date: Wed, 30 Oct 2019 16:43:40 +0300 Subject: [PATCH] fix sync_windows.v --- vlib/sync/sync_windows.v | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/vlib/sync/sync_windows.v b/vlib/sync/sync_windows.v index a2fdef37b0..fdfe60c99c 100644 --- a/vlib/sync/sync_windows.v +++ b/vlib/sync/sync_windows.v @@ -63,9 +63,9 @@ pub fn (m mut Mutex) lock() { } state := C.WaitForSingleObject(m.mx, INFINITE) // infinite wait m.state = match state { - WAIT_ABANDONED { MutexState.abandoned } - WAIT_OBJECT_0 { MutexState.waiting } - else { MutexState.broken } + WAIT_ABANDONED { .abandoned } + WAIT_OBJECT_0 { .waiting } + else { .broken } } }