mirror of
https://github.com/reactos/reactos.git
synced 2025-08-04 02:36:13 +00:00
- Fix two typos in the buffer size calculation code, spotted by Stefan Ginsberg.
svn path=/trunk/; revision=33301
This commit is contained in:
parent
beb173aaa8
commit
26171ce642
1 changed files with 49 additions and 49 deletions
|
@ -81,7 +81,7 @@ MiDoMappedCopy(IN PEPROCESS SourceProcess,
|
|||
|
||||
/* Calculate the maximum amount of data to move */
|
||||
TotalSize = MI_MAPPED_COPY_PAGES - 2;
|
||||
if (TotalSize <= (MI_MAPPED_COPY_PAGES - 2)) TotalSize = BufferSize;
|
||||
if (BufferSize <= (MI_MAPPED_COPY_PAGES - 2)) TotalSize = BufferSize;
|
||||
CurrentSize = BufferSize;
|
||||
RemainingSize = TotalSize;
|
||||
|
||||
|
@ -235,7 +235,7 @@ MiDoPoolCopy(IN PEPROCESS SourceProcess,
|
|||
|
||||
/* Calculate the maximum amount of data to move */
|
||||
TotalSize = MI_MAX_TRANSFER_SIZE;
|
||||
if (TotalSize <= MI_MAX_TRANSFER_SIZE) TotalSize = BufferSize;
|
||||
if (BufferSize <= MI_MAX_TRANSFER_SIZE) TotalSize = BufferSize;
|
||||
CurrentSize = BufferSize;
|
||||
RemainingSize = TotalSize;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue