Small fix with last page in reallocate pages
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@252
This commit is contained in:
parent
6b02e3c5af
commit
7586832b94
1 changed files with 1 additions and 1 deletions
|
@ -142,7 +142,7 @@ static Bit8u EMM_ReallocatePages(Bit16u handle,Bit16u & pages) {
|
|||
/* Check for enough pages */
|
||||
if ((emm_handles[handle].pages+EMM_GetFreePages())<pages) return EMM_OUT_OF_LOG;
|
||||
Bit16u page=emm_handles[handle].first_page;
|
||||
Bit16u last=NULL_PAGE;
|
||||
Bit16u last=page;
|
||||
Bit16u page_count=emm_handles[handle].pages;
|
||||
while (pages>0 && page_count>0) {
|
||||
if (emm_pages[page].handle!=handle) E_Exit("EMM:Error illegal handle reference");
|
||||
|
|
Loading…
Add table
Reference in a new issue