[return checks] fix use of ReleaseMutex

This commit is contained in:
akallabeth 2024-09-16 05:47:55 +02:00
parent 7d67b8e204
commit 7c8c14294f
No known key found for this signature in database
GPG Key ID: A49454A3FC909FD5
5 changed files with 7 additions and 7 deletions

View File

@ -442,7 +442,7 @@ static void udevman_loading_lock(IUDEVMAN* idevman)
static void udevman_loading_unlock(IUDEVMAN* idevman)
{
UDEVMAN* udevman = (UDEVMAN*)idevman;
ReleaseMutex(udevman->devman_loading);
(void)ReleaseMutex(udevman->devman_loading);
}
BASIC_STATE_FUNC_DEFINED(device_num, UINT32)

View File

@ -827,7 +827,7 @@ void xf_unlock_x11_(xfContext* xfc, const char* fkt)
#endif
if (!xfc->UseXThreads)
ReleaseMutex(xfc->mutex);
(void)ReleaseMutex(xfc->mutex);
else
XUnlockDisplay(xfc->display);
}

View File

@ -330,7 +330,7 @@ LONGLONG InterlockedCompareExchange64(LONGLONG volatile* Destination, LONGLONG E
*Destination = Exchange;
if (locked)
ReleaseMutex(mutex);
(void)ReleaseMutex(mutex);
else
(void)fprintf(stderr,
"WARNING: InterlockedCompareExchange64 operation might have failed\n");

View File

@ -229,8 +229,8 @@ static BOOL test_mutex_threading(void)
CloseHandle(thread1_mutex2);
return TRUE;
fail:
ReleaseMutex(thread1_mutex1);
ReleaseMutex(thread1_mutex2);
(void)ReleaseMutex(thread1_mutex1);
(void)ReleaseMutex(thread1_mutex2);
CloseHandle(thread1_mutex1);
CloseHandle(thread1_mutex2);
CloseHandle(hStartEvent);

View File

@ -79,7 +79,7 @@ static void _winpr_openssl_locking(int mode, int type, const char* file, int lin
}
else
{
ReleaseMutex(g_winpr_openssl_locks[type]);
(void)ReleaseMutex(g_winpr_openssl_locks[type]);
}
}
@ -108,7 +108,7 @@ static void _winpr_openssl_dynlock_lock(int mode, struct CRYPTO_dynlock_value* d
}
else
{
ReleaseMutex(dynlock->mutex);
(void)ReleaseMutex(dynlock->mutex);
}
}