mirror of
https://github.com/reactos/reactos.git
synced 2025-08-03 22:05:49 +00:00
[NTOSKRNL]
Patch by Thomas Faber ExAcquireSharedStarveExclusive and ExAcquireSharedWaitForExclusive should return FALSE when they cannot immediately acquire the resource, and the Wait parameter is false. They return TRUE instead, leading the caller to believe it acquired the resource, which will result in a bugcheck when it tries to release it. See issue #6375 for more details. svn path=/trunk/; revision=52741
This commit is contained in:
parent
723d09b46c
commit
ffe1655d1a
1 changed files with 3 additions and 3 deletions
|
@ -1159,7 +1159,7 @@ TryAcquire:
|
|||
{
|
||||
/* Release the lock and return */
|
||||
ExReleaseResourceLock(Resource, &LockHandle);
|
||||
return TRUE;
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
/* Check if we have a shared waiters semaphore */
|
||||
|
@ -1276,7 +1276,7 @@ TryAcquire:
|
|||
{
|
||||
/* So bail out if we're not allowed */
|
||||
ExReleaseResourceLock(Resource, &LockHandle);
|
||||
return TRUE;
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
/* Check if we have a shared waiters semaphore */
|
||||
|
@ -1359,7 +1359,7 @@ TryAcquire:
|
|||
{
|
||||
/* So bail out if we're not allowed */
|
||||
ExReleaseResourceLock(Resource, &LockHandle);
|
||||
return TRUE;
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
/* Check if we have a shared waiters semaphore */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue