mirror of
https://github.com/morgan9e/FreeRDP
synced 2026-04-15 00:44:19 +09:00
[return checks] fix use of SetEvent
This commit is contained in:
@@ -322,7 +322,7 @@ static UINT audin_alsa_close(IAudinDevice* device)
|
||||
|
||||
if (alsa->stopEvent)
|
||||
{
|
||||
SetEvent(alsa->stopEvent);
|
||||
(void)SetEvent(alsa->stopEvent);
|
||||
|
||||
if (WaitForSingleObject(alsa->thread, INFINITE) == WAIT_FAILED)
|
||||
{
|
||||
|
||||
@@ -332,7 +332,7 @@ static UINT audin_oss_close(IAudinDevice* device)
|
||||
|
||||
if (oss->stopEvent != NULL)
|
||||
{
|
||||
SetEvent(oss->stopEvent);
|
||||
(void)SetEvent(oss->stopEvent);
|
||||
|
||||
if (WaitForSingleObject(oss->thread, INFINITE) == WAIT_FAILED)
|
||||
{
|
||||
|
||||
@@ -227,7 +227,7 @@ static UINT audin_sndio_close(IAudinDevice* device)
|
||||
|
||||
if (sndio->stopEvent != NULL)
|
||||
{
|
||||
SetEvent(sndio->stopEvent);
|
||||
(void)SetEvent(sndio->stopEvent);
|
||||
|
||||
if (WaitForSingleObject(sndio->thread, INFINITE) == WAIT_FAILED)
|
||||
{
|
||||
|
||||
@@ -293,7 +293,7 @@ static UINT audin_winmm_close(IAudinDevice* device)
|
||||
if (!winmm)
|
||||
return ERROR_INVALID_PARAMETER;
|
||||
|
||||
SetEvent(winmm->stopEvent);
|
||||
(void)SetEvent(winmm->stopEvent);
|
||||
status = WaitForSingleObject(winmm->thread, INFINITE);
|
||||
|
||||
if (status == WAIT_FAILED)
|
||||
|
||||
@@ -516,7 +516,7 @@ static BOOL audin_server_close(audin_server_context* context)
|
||||
|
||||
if (audin->thread)
|
||||
{
|
||||
SetEvent(audin->stopEvent);
|
||||
(void)SetEvent(audin->stopEvent);
|
||||
|
||||
if (WaitForSingleObject(audin->thread, INFINITE) == WAIT_FAILED)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user