mirror of
https://github.com/morgan9e/FreeRDP
synced 2026-04-15 00:44:19 +09:00
[return checks] fix use of CloseHandle
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user