[return checks] fix use of CloseHandle

This commit is contained in:
akallabeth
2024-09-16 04:58:36 +02:00
parent cd18dea174
commit 965d231e49
113 changed files with 288 additions and 290 deletions

View File

@@ -1770,7 +1770,7 @@ static UINT drdynvc_virtual_channel_event_disconnected(drdynvcPlugin* drdynvc)
return status;
}
CloseHandle(drdynvc->thread);
(void)CloseHandle(drdynvc->thread);
drdynvc->thread = NULL;
}
else

View File

@@ -138,7 +138,7 @@ static UINT drdynvc_server_start(DrdynvcServerContext* context)
CreateThread(NULL, 0, drdynvc_server_thread, (void*)context, 0, NULL)))
{
WLog_ERR(TAG, "CreateThread failed!");
CloseHandle(context->priv->StopEvent);
(void)CloseHandle(context->priv->StopEvent);
context->priv->StopEvent = NULL;
return ERROR_INTERNAL_ERROR;
}
@@ -163,7 +163,7 @@ static UINT drdynvc_server_stop(DrdynvcServerContext* context)
return error;
}
CloseHandle(context->priv->Thread);
(void)CloseHandle(context->priv->Thread);
return CHANNEL_RC_OK;
}