[NTOSKRNL]

Disable normal APC delivery while acquiring/releasing a heap lock. Also, BOOLEAN != NTSTATUS.


svn path=/trunk/; revision=53729
This commit is contained in:
Roel Messiant 2011-09-17 20:26:31 +00:00
parent 2a158fc63b
commit 1a7296bb39

View file

@ -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;
}