Author: tkreuzer
Date: Tue May 6 18:19:22 2008
New Revision: 33337
URL:
http://svn.reactos.org/svn/reactos?rev=33337&view=rev
Log:
change Amount param in all PsXxxPoolQuota functions to SIZE_T
Modified:
trunk/reactos/include/ndk/psfuncs.h
trunk/reactos/ntoskrnl/ps/quota.c
Modified: trunk/reactos/include/ndk/psfuncs.h
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/include/ndk/psfuncs.h?rev=…
==============================================================================
--- trunk/reactos/include/ndk/psfuncs.h [iso-8859-1] (original)
+++ trunk/reactos/include/ndk/psfuncs.h [iso-8859-1] Tue May 6 18:19:22 2008
@@ -101,7 +101,7 @@
NTAPI
PsReturnProcessNonPagedPoolQuota(
IN PEPROCESS Process,
- IN ULONG_PTR Amount
+ IN SIZE_T Amount
);
//
@@ -141,7 +141,7 @@
PsChargePoolQuota(
IN PEPROCESS Process,
IN POOL_TYPE PoolType,
- IN ULONG Amount
+ IN SIZE_T Amount
);
NTKERNELAPI
@@ -149,7 +149,7 @@
NTAPI
PsChargeProcessNonPagedPoolQuota(
IN PEPROCESS Process,
- IN ULONG_PTR Amount
+ IN SIZE_T Amount
);
NTKERNELAPI
@@ -157,7 +157,7 @@
NTAPI
PsChargeProcessPagedPoolQuota(
IN PEPROCESS Process,
- IN ULONG_PTR Amount
+ IN SIZE_T Amount
);
NTKERNELAPI
@@ -166,7 +166,7 @@
PsChargeProcessPoolQuota(
IN PEPROCESS Process,
IN POOL_TYPE PoolType,
- IN ULONG Amount
+ IN SIZE_T Amount
);
NTKERNELAPI
@@ -175,7 +175,7 @@
PsReturnPoolQuota(
IN PEPROCESS Process,
IN POOL_TYPE PoolType,
- IN ULONG_PTR Amount
+ IN SIZE_T Amount
);
NTKERNELAPI
@@ -183,7 +183,7 @@
NTAPI
PsReturnProcessNonPagedPoolQuota(
IN PEPROCESS Process,
- IN ULONG_PTR Amount
+ IN SIZE_T Amount
);
NTKERNELAPI
@@ -191,7 +191,7 @@
NTAPI
PsReturnProcessPagedPoolQuota(
IN PEPROCESS Process,
- IN ULONG_PTR Amount
+ IN SIZE_T Amount
);
#endif
Modified: trunk/reactos/ntoskrnl/ps/quota.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/ntoskrnl/ps/quota.c?rev=33…
==============================================================================
--- trunk/reactos/ntoskrnl/ps/quota.c [iso-8859-1] (original)
+++ trunk/reactos/ntoskrnl/ps/quota.c [iso-8859-1] Tue May 6 18:19:22 2008
@@ -38,7 +38,7 @@
NTAPI
PspChargeProcessQuotaSpecifiedPool(IN PEPROCESS Process,
IN UCHAR PoolIndex,
- IN ULONG Amount)
+ IN SIZE_T Amount)
{
ASSERT(Process);
ASSERT(Process != PsInitialSystemProcess);
@@ -74,7 +74,7 @@
NTAPI
PspReturnProcessQuotaSpecifiedPool(IN PEPROCESS Process,
IN UCHAR PoolIndex,
- IN ULONG Amount)
+ IN SIZE_T Amount)
{
ASSERT(Process);
ASSERT(Process != PsInitialSystemProcess);
@@ -114,11 +114,11 @@
if (ParentProcess != NULL)
{
PEPROCESS_QUOTA_BLOCK QuotaBlock = ParentProcess->QuotaBlock;
-
+
ASSERT(QuotaBlock != NULL);
(void)InterlockedIncrementUL(&QuotaBlock->ReferenceCount);
-
+
Process->QuotaBlock = QuotaBlock;
}
else
@@ -162,7 +162,7 @@
STDCALL
PsChargePoolQuota(IN PEPROCESS Process,
IN POOL_TYPE PoolType,
- IN ULONG Amount)
+ IN SIZE_T Amount)
{
NTSTATUS Status;
@@ -186,7 +186,7 @@
NTSTATUS
STDCALL
PsChargeProcessNonPagedPoolQuota(IN PEPROCESS Process,
- IN ULONG_PTR Amount)
+ IN SIZE_T Amount)
{
/* Call the general function */
return PsChargeProcessPoolQuota(Process, NonPagedPool, Amount);
@@ -198,7 +198,7 @@
NTSTATUS
STDCALL
PsChargeProcessPagedPoolQuota(IN PEPROCESS Process,
- IN ULONG_PTR Amount)
+ IN SIZE_T Amount)
{
/* Call the general function */
return PsChargeProcessPoolQuota(Process, PagedPool, Amount);
@@ -211,7 +211,7 @@
STDCALL
PsChargeProcessPoolQuota(IN PEPROCESS Process,
IN POOL_TYPE PoolType,
- IN ULONG Amount)
+ IN SIZE_T Amount)
{
/* Don't do anything for the system process */
if (Process == PsInitialSystemProcess) return STATUS_SUCCESS;
@@ -233,7 +233,7 @@
STDCALL
PsReturnPoolQuota(IN PEPROCESS Process,
IN POOL_TYPE PoolType,
- IN ULONG_PTR Amount)
+ IN SIZE_T Amount)
{
#ifdef PS_QUOTA_ENABLE_QUOTA_CODE
/* MS-documented IRQL requirement. Not yet enabled as it */
@@ -259,7 +259,7 @@
VOID
STDCALL
PsReturnProcessNonPagedPoolQuota(IN PEPROCESS Process,
- IN ULONG_PTR Amount)
+ IN SIZE_T Amount)
{
/* Don't do anything for the system process */
if (Process == PsInitialSystemProcess) return;
@@ -277,7 +277,7 @@
VOID
STDCALL
PsReturnProcessPagedPoolQuota(IN PEPROCESS Process,
- IN ULONG_PTR Amount)
+ IN SIZE_T Amount)
{
/* Don't do anything for the system process */
if (Process == PsInitialSystemProcess) return;
@@ -296,7 +296,7 @@
{
/* Don't do anything for the system process */
if (Process == PsInitialSystemProcess) return STATUS_SUCCESS;
-
+
#ifdef PS_QUOTA_ENABLE_QUOTA_CODE
PspReturnProcessQuotaSpecifiedPool(Process, 2, Amount);
#else