From 9a071b21a84062f8de019d085d470c9a9728252a Mon Sep 17 00:00:00 2001 From: qieziting <39586374+qieziting@users.noreply.github.com> Date: Wed, 16 Nov 2022 15:50:52 +0800 Subject: [PATCH] Fix error process of GetQueuedCompletionStatus --- samples/syelog/syelogd.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/samples/syelog/syelogd.cpp b/samples/syelog/syelogd.cpp index 97174782..4f563a0c 100644 --- a/samples/syelog/syelogd.cpp +++ b/samples/syelog/syelogd.cpp @@ -357,7 +357,7 @@ DWORD WINAPI WorkerThread(LPVOID pvVoid) b = GetQueuedCompletionStatus(hCompletionPort, &nBytes, (PULONG_PTR)&pClient, &lpo, INFINITE); - if (!b || lpo == NULL) { + if (!b && lpo == NULL) { fKeepLooping = FALSE; MyErrExit("GetQueuedCompletionState"); break;