Fixed bug with transfer length being the same size of memory block.
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@193
This commit is contained in:
parent
0eb4d60d4c
commit
b71b8072d6
1 changed files with 2 additions and 2 deletions
|
@ -233,7 +233,7 @@ foundnew:
|
|||
reg_bl=0xa4; /* Src Offset invalid */
|
||||
return CBRET_NONE;
|
||||
}
|
||||
if (block.length>=xms_handles[block.src_handle].size*1024U-block.src.offset) {
|
||||
if (block.length>xms_handles[block.src_handle].size*1024U-block.src.offset) {
|
||||
reg_ax=0;
|
||||
reg_bl=0xa7; /* Length invalid */
|
||||
return CBRET_NONE;
|
||||
|
@ -254,7 +254,7 @@ foundnew:
|
|||
reg_bl=0xa4; /* Dest Offset invalid */
|
||||
return CBRET_NONE;
|
||||
}
|
||||
if (block.length>=xms_handles[block.dest_handle].size*1024U-block.dest.offset) {
|
||||
if (block.length>xms_handles[block.dest_handle].size*1024U-block.dest.offset) {
|
||||
reg_ax=0;
|
||||
reg_bl=0xa7; /* Length invalid */
|
||||
return CBRET_NONE;
|
||||
|
|
Loading…
Add table
Reference in a new issue