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)); }