[return checks] fix use of TerminateThread

This commit is contained in:
akallabeth
2024-09-16 05:08:35 +02:00
parent 94020c183c
commit 4d2197eab0
2 changed files with 2 additions and 2 deletions

View File

@@ -261,7 +261,7 @@ static void channel_terminated(Plugin* plugin)
return;
if (plugin->copyThread)
TerminateThread(plugin->copyThread, 0);
(void)TerminateThread(plugin->copyThread, 0);
if (plugin->writeComplete)
CloseHandle(plugin->writeComplete);

View File

@@ -825,7 +825,7 @@ static void irp_thread_close(void* arg)
WLog_WARN(TAG, "closing self, ignoring...");
else
{
TerminateThread(hdl, 0);
(void)TerminateThread(hdl, 0);
WaitForSingleObject(hdl, INFINITE);
CloseHandle(hdl);
}