Skip to content
Snippets Groups Projects
Commit 1c2cce85 authored by Deucе's avatar Deucе :ok_hand_tone4:
Browse files

Another Coverity issue fixed.

Although, Coverity is wrong, close() *can* "accept a negative number",
it just always returns EBADF... which would behave correctly.
parent 5c651cfc
No related branches found
No related tags found
1 merge request!463MRC mods by Codefenix (2024-10-20)
Pipeline #4304 passed
......@@ -263,6 +263,8 @@ Fun snippet from the FreeBSD manpage:
BOOL comClose(COM_HANDLE handle)
{
if (handle == COM_HANDLE_INVALID)
return FALSE;
return (!close(handle));
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment