1
0
Fork 0

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:
Sjoerd van der Berg 2003-09-29 16:38:34 +00:00
parent 6b72dfd2f0
commit 7fc3a1d5c5

View file

@ -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);