[return checks] fix use of TerminateThread
This commit is contained in:
parent
94020c183c
commit
4d2197eab0
@ -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);
|
||||
|
||||
|
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user