Fix dillo/vncviewer regressions (semaphore bug). thanks to art and waxdragon for notifying me of the regressions.

svn path=/trunk/; revision=14117
This commit is contained in:
Alex Ionescu 2005-03-16 03:12:32 +00:00
parent fbfe053b9b
commit 4bf67aaf0f

View file

@ -95,7 +95,7 @@ NtCreateSemaphore(OUT PHANDLE SemaphoreHandle,
}
/* Make sure the counts make sense */
if (!MaximumCount || !InitialCount || InitialCount > MaximumCount) {
if (!MaximumCount || InitialCount < 0 || InitialCount > MaximumCount) {
DPRINT("Invalid Count Data!\n");
return STATUS_INVALID_PARAMETER;