Unbreak build (unused local var's warnings when not using the quota code).
authorMike Nordell <tamlin@algonet.se>
Tue, 23 Oct 2007 12:31:21 +0000 (12:31 +0000)
committerMike Nordell <tamlin@algonet.se>
Tue, 23 Oct 2007 12:31:21 +0000 (12:31 +0000)
svn path=/trunk/; revision=29828

reactos/ntoskrnl/ps/quota.c

index 6c02afc..405a268 100644 (file)
@@ -182,7 +182,10 @@ PsChargeProcessPoolQuota(IN PEPROCESS Process,
                          IN POOL_TYPE PoolType,
                          IN ULONG Amount)
 {
+#ifdef PS_QUOTA_ENABLE_QUOTA_CODE
     INT PoolIndex;
+#endif
+
     /* Don't do anything for the system process */
     if (Process == PsInitialSystemProcess) return STATUS_SUCCESS;
 
@@ -220,7 +223,10 @@ PsReturnPoolQuota(IN PEPROCESS Process,
                   IN POOL_TYPE PoolType,
                   IN ULONG_PTR Amount)
 {
+#ifdef PS_QUOTA_ENABLE_QUOTA_CODE
     INT PoolIndex;
+#endif
+
     /* Don't do anything for the system process */
     if (Process == PsInitialSystemProcess) return;