mirror of
https://github.com/ApfelTeeSaft/reactos.git
synced 2026-08-30 04:13:33 +00:00
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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user