mirror of
https://github.com/reactos/reactos.git
synced 2024-12-27 17:44:45 +00:00
Pass correct pool type to PsChargePoolQuota.
svn path=/trunk/; revision=16948
This commit is contained in:
parent
1ae15efc80
commit
7fafe4314a
1 changed files with 2 additions and 2 deletions
|
@ -192,14 +192,14 @@ ExAllocatePoolWithQuotaTag (IN POOL_TYPE PoolType,
|
||||||
return EXCEPTION_CONTINUE_SEARCH;
|
return EXCEPTION_CONTINUE_SEARCH;
|
||||||
} _SEH_TRY {
|
} _SEH_TRY {
|
||||||
//* FIXME: Is there a way to get the actual Pool size allocated from the pool header? */
|
//* FIXME: Is there a way to get the actual Pool size allocated from the pool header? */
|
||||||
PsChargePoolQuota(Process, PoolType, NumberOfBytes);
|
PsChargePoolQuota(Process, PoolType & PAGED_POOL_MASK, NumberOfBytes);
|
||||||
} _SEH_EXCEPT(FreeAndGoOn) {
|
} _SEH_EXCEPT(FreeAndGoOn) {
|
||||||
/* Quota Exceeded and the caller had no SEH! */
|
/* Quota Exceeded and the caller had no SEH! */
|
||||||
KeBugCheck(STATUS_QUOTA_EXCEEDED);
|
KeBugCheck(STATUS_QUOTA_EXCEEDED);
|
||||||
} _SEH_END;
|
} _SEH_END;
|
||||||
#else /* assuming all other Win32 compilers understand SEH */
|
#else /* assuming all other Win32 compilers understand SEH */
|
||||||
__try {
|
__try {
|
||||||
PsChargePoolQuota(Process, PoolType, NumberOfBytes);
|
PsChargePoolQuota(Process, PoolType & PAGED_POOL_MASK, NumberOfBytes);
|
||||||
}
|
}
|
||||||
__except (ExFreePool(Block), EXCEPTION_CONTINUE_SEARCH) {
|
__except (ExFreePool(Block), EXCEPTION_CONTINUE_SEARCH) {
|
||||||
KeBugCheck(STATUS_QUOTA_EXCEEDED);
|
KeBugCheck(STATUS_QUOTA_EXCEEDED);
|
||||||
|
|
Loading…
Reference in a new issue