projects
/
reactos.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8483e51
)
- Buffer size is in bytes, not in pages. Fixes boot breakage.
author
Aleksey Bragin
<aleksey@reactos.org>
Mon, 5 May 2008 21:07:32 +0000
(21:07 +0000)
committer
Aleksey Bragin
<aleksey@reactos.org>
Mon, 5 May 2008 21:07:32 +0000
(21:07 +0000)
svn path=/trunk/; revision=33307
reactos/ntoskrnl/mm/virtual.c
patch
|
blob
|
history
diff --git
a/reactos/ntoskrnl/mm/virtual.c
b/reactos/ntoskrnl/mm/virtual.c
index
eead525
..
6d9d0fe
100644
(file)
--- a/
reactos/ntoskrnl/mm/virtual.c
+++ b/
reactos/ntoskrnl/mm/virtual.c
@@
-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;