mirror of
https://github.com/ApfelTeeSaft/reactos.git
synced 2026-09-02 04:13:34 +00:00
- Buffer size is in bytes, not in pages. Fixes boot breakage.
svn path=/trunk/; revision=33307
This commit is contained in:
@@ -80,8 +80,8 @@ MiDoMappedCopy(IN PEPROCESS SourceProcess,
|
||||
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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user