[return checks] fix use of WaitForSingleObject

This commit is contained in:
akallabeth
2024-09-16 05:06:07 +02:00
parent 965d231e49
commit bb242b9a89
33 changed files with 49 additions and 48 deletions

View File

@@ -163,7 +163,7 @@ int main(int argc, char* argv[])
WLog_INFO(TAG, "Starting server");
wfreerdp_server_start(server);
WaitForSingleObject(server->thread, INFINITE);
(void)WaitForSingleObject(server->thread, INFINITE);
WLog_INFO(TAG, "Stopping server");
wfreerdp_server_stop(server);
wfreerdp_server_free(server);

View File

@@ -218,7 +218,7 @@ static DWORD WINAPI wf_peer_socket_listener(LPVOID lpParam)
}
(void)SetEvent(context->socketEvent);
WaitForSingleObject(context->socketSemaphore, INFINITE);
(void)WaitForSingleObject(context->socketSemaphore, INFINITE);
if (context->socketClose)
break;

View File

@@ -80,7 +80,7 @@ DWORD WINAPI wf_update_thread(LPVOID lpParam)
{
// WLog_DBG(TAG, "Waiting for %d of %d", index + 1, wfi->activePeerCount);
// WaitForSingleObject(wfi->updateSemaphore, INFINITE);
WaitForSingleObject(wfi->updateSemaphore, 1000);
(void)WaitForSingleObject(wfi->updateSemaphore, 1000);
}
// WLog_DBG(TAG, "End of parallel sending");