Fix bug in move memory region where it would copy from the wrong place
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@1271
This commit is contained in:
parent
6b72dfd2f0
commit
7fc3a1d5c5
1 changed files with 1 additions and 1 deletions
|
@ -419,7 +419,7 @@ static Bit8u MemoryRegion(void) {
|
|||
MEM_BlockWrite(dest_mem,buf_src,toread);
|
||||
} else {
|
||||
if (toread<dest_remain) {
|
||||
MEM_BlockWrite((dest_handle*MEM_PAGE_SIZE)+dest_off,buf_dest,toread);
|
||||
MEM_BlockWrite((dest_handle*MEM_PAGE_SIZE)+dest_off,buf_src,toread);
|
||||
} else {
|
||||
MEM_BlockWrite((dest_handle*MEM_PAGE_SIZE)+dest_off,buf_src,dest_remain);
|
||||
MEM_BlockWrite((MEM_NextHandle(dest_handle)*MEM_PAGE_SIZE),&buf_src[dest_remain],toread-dest_remain);
|
||||
|
|
Loading…
Add table
Reference in a new issue