Author: cwittich
Date: Tue Nov 20 22:15:02 2007
New Revision: 30601
URL:
http://svn.reactos.org/svn/reactos?rev=30601&view=rev
Log:
add missing brackets in MmReserveSwapPages
Modified:
trunk/reactos/ntoskrnl/mm/pagefile.c
Modified: trunk/reactos/ntoskrnl/mm/pagefile.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/ntoskrnl/mm/pagefile.c?rev…
==============================================================================
--- trunk/reactos/ntoskrnl/mm/pagefile.c (original)
+++ trunk/reactos/ntoskrnl/mm/pagefile.c Tue Nov 20 22:15:02 2007
@@ -376,7 +376,7 @@
MiAvailSwapPages =
(MiFreeSwapPages * MM_PAGEFILE_COMMIT_RATIO) + MM_PAGEFILE_COMMIT_GRACE;
MiReservedSwapPages = MiReservedSwapPages + Nr;
- if (MM_PAGEFILE_COMMIT_RATIO != 0 && MiAvailSwapPages <
MiReservedSwapPages)
+ if ((MM_PAGEFILE_COMMIT_RATIO != 0) && (MiAvailSwapPages <
MiReservedSwapPages))
{
KeReleaseSpinLock(&PagingFileListLock, oldIrql);
return(FALSE);