[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

@@ -465,7 +465,7 @@ BOOL ios_cliprdr_init(mfContext *afc, CliprdrClientContext *cliprdr)
if (!(clipboard = ClipboardCreate()))
{
CloseHandle(hevent);
(void)CloseHandle(hevent);
return FALSE;
}
@@ -494,6 +494,6 @@ BOOL ios_cliprdr_uninit(mfContext *afc, CliprdrClientContext *cliprdr)
cliprdr->custom = NULL;
afc->cliprdr = NULL;
ClipboardDestroy(afc->clipboard);
CloseHandle(afc->clipboardRequestEvent);
(void)CloseHandle(afc->clipboardRequestEvent);
return TRUE;
}

View File

@@ -170,5 +170,5 @@ void ios_events_free_pipe(mfInfo *mfi)
mfi->event_pipe_consumer = mfi->event_pipe_producer = -1;
close(producer_fd);
close(consumer_fd);
CloseHandle(mfi->handle);
(void)CloseHandle(mfi->handle);
}