From: John Hodge Date: Thu, 23 Feb 2012 16:03:10 +0000 (+0800) Subject: Kernel - Slight semaphore fix X-Git-Tag: rel0.15~757 X-Git-Url: https://git.ucc.asn.au/?a=commitdiff_plain;h=2a2e04c65347ba90cdb7d841ff2c8ca0adcf531f;p=tpg%2Facess2.git Kernel - Slight semaphore fix --- diff --git a/KernelLand/Kernel/semaphore.c b/KernelLand/Kernel/semaphore.c index d4583e74..e43547a2 100644 --- a/KernelLand/Kernel/semaphore.c +++ b/KernelLand/Kernel/semaphore.c @@ -33,6 +33,7 @@ int Semaphore_Wait(tSemaphore *Sem, int MaxToTake) if( MaxToTake < 0 ) { Log_Warning("Threads", "Semaphore_Wait: User bug - MaxToTake(%i) < 0, Sem=%p(%s)", MaxToTake, Sem, Sem->Name); + MaxToTake = 0; } SHORTLOCK( &Sem->Protector );