Author: fireball
Date: Mon May 5 16:07:32 2008
New Revision: 33307
URL:
http://svn.reactos.org/svn/reactos?rev=33307&view=rev
Log:
- Buffer size is in bytes, not in pages. Fixes boot breakage.
Modified:
trunk/reactos/ntoskrnl/mm/virtual.c
Modified: trunk/reactos/ntoskrnl/mm/virtual.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/ntoskrnl/mm/virtual.c?rev=…
==============================================================================
--- trunk/reactos/ntoskrnl/mm/virtual.c [iso-8859-1] (original)
+++ trunk/reactos/ntoskrnl/mm/virtual.c [iso-8859-1] Mon May 5 16:07:32 2008
@@ -80,8 +80,8 @@
PAGED_CODE();
/* Calculate the maximum amount of data to move */
- TotalSize = MI_MAPPED_COPY_PAGES - 2;
- if (BufferSize <= (MI_MAPPED_COPY_PAGES - 2)) TotalSize = BufferSize;
+ TotalSize = (MI_MAPPED_COPY_PAGES - 2) * PAGE_SIZE;
+ if (BufferSize <= TotalSize) TotalSize = BufferSize;
CurrentSize = BufferSize;
RemainingSize = TotalSize;