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