From 1a1e67f5959f8bd96d0d7bf0498c5d8fec77c8d7 Mon Sep 17 00:00:00 2001 From: Todd Naugle Date: Thu, 27 May 2021 15:17:15 -0500 Subject: [PATCH] Use Posix style return values for sem wait when on windows. 0 on success, -1 on error --- libs/pbd/semutils.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libs/pbd/semutils.cc b/libs/pbd/semutils.cc index 61888c66ed..ab2928ee79 100644 --- a/libs/pbd/semutils.cc +++ b/libs/pbd/semutils.cc @@ -73,7 +73,7 @@ Semaphore::wait () { DWORD result = 0; result = WaitForSingleObject(_sem, INFINITE); - return (result == WAIT_OBJECT_0); + return (result == WAIT_OBJECT_0 ? 0 : -1); } int