mirror of
https://github.com/morgan9e/FreeRDP
synced 2026-04-14 00:14:11 +09:00
[return checks] fix use of CloseHandle
This commit is contained in:
@@ -475,7 +475,7 @@ BOOL android_cliprdr_init(androidContext* afc, CliprdrClientContext* cliprdr)
|
||||
|
||||
if (!(clipboard = ClipboardCreate()))
|
||||
{
|
||||
CloseHandle(hevent);
|
||||
(void)CloseHandle(hevent);
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
@@ -504,6 +504,6 @@ BOOL android_cliprdr_uninit(androidContext* afc, CliprdrClientContext* cliprdr)
|
||||
cliprdr->custom = NULL;
|
||||
afc->cliprdr = NULL;
|
||||
ClipboardDestroy(afc->clipboard);
|
||||
CloseHandle(afc->clipboardRequestEvent);
|
||||
(void)CloseHandle(afc->clipboardRequestEvent);
|
||||
return TRUE;
|
||||
}
|
||||
|
||||
@@ -325,7 +325,7 @@ BOOL android_event_queue_init(freerdp* inst)
|
||||
if (!queue->events)
|
||||
{
|
||||
WLog_ERR(TAG, "android_event_queue_init: memory allocation failed");
|
||||
CloseHandle(queue->isSet);
|
||||
(void)CloseHandle(queue->isSet);
|
||||
free(queue);
|
||||
return FALSE;
|
||||
}
|
||||
@@ -349,7 +349,7 @@ void android_event_queue_uninit(freerdp* inst)
|
||||
{
|
||||
if (queue->isSet)
|
||||
{
|
||||
CloseHandle(queue->isSet);
|
||||
(void)CloseHandle(queue->isSet);
|
||||
queue->isSet = NULL;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user