From: John Wolfe Date: Tue, 22 Dec 2020 20:22:03 +0000 (-0800) Subject: Common source file change not applicable to open-vm-tools X-Git-Tag: stable-11.3.0~199 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1d8243ee2d6b606f0be546fdaae494229c0714a6;p=thirdparty%2Fopen-vm-tools.git Common source file change not applicable to open-vm-tools --- diff --git a/open-vm-tools/lib/lock/ulSema.c b/open-vm-tools/lib/lock/ulSema.c index f0984a19c..589b55353 100644 --- a/open-vm-tools/lib/lock/ulSema.c +++ b/open-vm-tools/lib/lock/ulSema.c @@ -141,8 +141,10 @@ MXUserTimedDown(NativeSemaphore *sema, // IN: break; default: // Something really terrible has happened... - Panic("%s: WaitForSingleObject return value %x\n", - __FUNCTION__, status); + if (vmx86_debug) { + Panic("%s: WaitForSingleObject return value %x\n", + __FUNCTION__, status); + } } return err; @@ -153,8 +155,8 @@ MXUserDown(NativeSemaphore *sema) // IN: { DWORD status = WaitForSingleObject(*sema, INFINITE); - /* The down (decrement) *HAD BETTER HAVE* occurred */ - if (status != WAIT_OBJECT_0) { + /* The down (decrement) *HAD BETTER HAVE* occurred! */ + if (vmx86_debug && (status != WAIT_OBJECT_0)) { Panic("%s: WaitForSingleObject return value %x\n", __FUNCTION__, status); }