1
0
Fork 0

Fix memory allocation using same memory block again while doing bestmatch

Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@1227
This commit is contained in:
Sjoerd van der Berg 2003-09-04 15:47:55 +00:00
parent 72e2a732df
commit 6de41171d1

View file

@ -377,7 +377,7 @@ void MEM_AllocLinkMemory(PageEntry * theentry) {
void MEM_SetLFB(Bitu page,Bitu pages,HostPt pt) {
if (pages>LFB_PAGES) E_Exit("MEM:LFB to large");
LOG_MSG("LFB Base at %X",page*4096);
LOG_MSG("LFB Base at address %X,page %X",page*4096,page);
memory.lfb.pages=pages;
memory.lfb.start_page=page;
memory.lfb.end_page=page+pages;
@ -550,8 +550,8 @@ MemHandle MEM_AllocatePages(Bitu pages,bool sequence) {
next=&memory.entries[index].next_handle;
index++;pages--;
}
*next=-1; //Invalidate it in case we need another match
}
*next=-1;
}
return ret;
}