[return checks] fix use of ResetEvent

This commit is contained in:
akallabeth
2024-09-16 04:53:18 +02:00
parent 7c8c14294f
commit 94020c183c
25 changed files with 33 additions and 33 deletions

View File

@@ -357,7 +357,7 @@ DWORD WINAPI wf_peer_main_loop(LPVOID lpParam)
if (client->activated)
wf_update_peer_send(wfi, context);
ResetEvent(context->updateEvent);
(void)ResetEvent(context->updateEvent);
ReleaseSemaphore(wfi->updateSemaphore, 1, NULL);
}
@@ -369,7 +369,7 @@ DWORD WINAPI wf_peer_main_loop(LPVOID lpParam)
context->socketClose = TRUE;
}
ResetEvent(context->socketEvent);
(void)ResetEvent(context->socketEvent);
ReleaseSemaphore(context->socketSemaphore, 1, NULL);
if (context->socketClose)
@@ -392,7 +392,7 @@ DWORD WINAPI wf_peer_main_loop(LPVOID lpParam)
if (WaitForSingleObject(context->updateEvent, 0) == 0)
{
ResetEvent(context->updateEvent);
(void)ResetEvent(context->updateEvent);
ReleaseSemaphore(wfi->updateSemaphore, 1, NULL);
}