[return checks] fix use of ReleaseMutex
This commit is contained in:
parent
7d67b8e204
commit
7c8c14294f
@ -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)
|
||||
|
@ -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);
|
||||
}
|
||||
|
@ -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");
|
||||
|
@ -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);
|
||||
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user