mirror of
https://github.com/reactos/reactos.git
synced 2025-07-14 22:04:16 +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:
parent
fbfe053b9b
commit
4bf67aaf0f
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue