From 38b6b0ac40e103fda534e6fdc8c3fb6611b4a404 Mon Sep 17 00:00:00 2001 From: Geoffrey McRae Date: Sat, 11 Nov 2023 20:34:30 +1100 Subject: [PATCH] [common] windows/event: fix control flow issue --- common/src/platform/windows/event.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/common/src/platform/windows/event.c b/common/src/platform/windows/event.c index e0030bd9..c9ef4a62 100644 --- a/common/src/platform/windows/event.c +++ b/common/src/platform/windows/event.c @@ -68,13 +68,13 @@ bool lgWaitEvent(LGEvent * event, unsigned int timeout) case WAIT_FAILED: DEBUG_WINERROR("Wait for event failed", GetLastError()); return false; + + default: + DEBUG_ERROR("Unknown wait event return code"); + return false; } - - DEBUG_ERROR("Unknown wait event return code"); } - while(0); - - return false; + while(true); } bool lgSignalEvent(LGEvent * event)