[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

@@ -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;
}

View File

@@ -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;
}