mirror of
https://github.com/reactos/reactos.git
synced 2024-12-28 10:04:49 +00:00
[NTOSKRNL]
Disable normal APC delivery while acquiring/releasing a heap lock. Also, BOOLEAN != NTSTATUS. svn path=/trunk/; revision=53729
This commit is contained in:
parent
2a158fc63b
commit
1a7296bb39
1 changed files with 6 additions and 1 deletions
|
@ -168,7 +168,10 @@ NTAPI
|
|||
RtlEnterHeapLock(
|
||||
PHEAP_LOCK Lock)
|
||||
{
|
||||
return ExAcquireResourceExclusive(&Lock->Resource, TRUE);
|
||||
KeEnterCriticalRegion();
|
||||
ExAcquireResourceExclusive(&Lock->Resource, TRUE);
|
||||
KeLeaveCriticalRegion();
|
||||
return STATUS_SUCCESS;
|
||||
}
|
||||
|
||||
NTSTATUS
|
||||
|
@ -185,7 +188,9 @@ NTAPI
|
|||
RtlLeaveHeapLock(
|
||||
PHEAP_LOCK Lock)
|
||||
{
|
||||
KeEnterCriticalRegion();
|
||||
ExReleaseResource(&Lock->Resource);
|
||||
KeLeaveCriticalRegion();
|
||||
return STATUS_SUCCESS;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue