From 33c8301e0af588a8c16b86d404ca7e703bead867 Mon Sep 17 00:00:00 2001 From: Gammasoft Date: Tue, 1 Aug 2023 00:21:44 +0200 Subject: [PATCH] Fix build on Windows --- src/xtd.core.native.win32/src/xtd/native/win32/named_mutex.cpp | 2 +- .../src/xtd/native/win32/named_semaphore.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/xtd.core.native.win32/src/xtd/native/win32/named_mutex.cpp b/src/xtd.core.native.win32/src/xtd/native/win32/named_mutex.cpp index e56c39b605a5..bf2ea703c239 100644 --- a/src/xtd.core.native.win32/src/xtd/native/win32/named_mutex.cpp +++ b/src/xtd.core.native.win32/src/xtd/native/win32/named_mutex.cpp @@ -39,5 +39,5 @@ bool named_mutex::signal(intmax_t handle, bool& io_error) { uint_least32_t named_mutex::wait(intmax_t handle, int_least32_t milliseconds_timeout) { if (reinterpret_cast(handle) == INVALID_HANDLE_VALUE) return WAIT_FAILED; - return static_cast(WaitForSingleObject(reinterpret_cast(handle), milliseconds_timeout == -1 ? INFINITE : milliseconds_timeout)) + return static_cast(WaitForSingleObject(reinterpret_cast(handle), milliseconds_timeout == -1 ? INFINITE : milliseconds_timeout)); } diff --git a/src/xtd.core.native.win32/src/xtd/native/win32/named_semaphore.cpp b/src/xtd.core.native.win32/src/xtd/native/win32/named_semaphore.cpp index 033930c5a61a..b8634914a553 100644 --- a/src/xtd.core.native.win32/src/xtd/native/win32/named_semaphore.cpp +++ b/src/xtd.core.native.win32/src/xtd/native/win32/named_semaphore.cpp @@ -41,5 +41,5 @@ bool named_semaphore::signal(intmax_t handle, int_least32_t release_count, int_l uint_least32_t named_semaphore::wait(intmax_t handle, int_least32_t milliseconds_timeout) { if (reinterpret_cast(handle) == INVALID_HANDLE_VALUE) return WAIT_FAILED; - return static_cast(WaitForSingleObject(reinterpret_cast(handle), milliseconds_timeout == -1 ? INFINITE : milliseconds_timeout)) + return static_cast(WaitForSingleObject(reinterpret_cast(handle), milliseconds_timeout == -1 ? INFINITE : milliseconds_timeout)); }