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:
@@ -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;
|
||||
}
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user