git.ucc.asn.au
/
tpg
/
acess2.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Kernel/VFS - Fixed missuse of strcmp that caused userland compilations to break
[tpg/acess2.git]
/
KernelLand
/
Kernel
/
semaphore.c
diff --git
a/KernelLand/Kernel/semaphore.c
b/KernelLand/Kernel/semaphore.c
index
d4583e7
..
e43547a
100644
(file)
--- 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 );
UCC
git Repository :: git.ucc.asn.au