cleanup patch from Max Horn
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@899
This commit is contained in:
parent
5e968ab24c
commit
517cde1b3c
4 changed files with 112 additions and 150 deletions
|
@ -148,7 +148,6 @@ Bit16u DOS_PSP::FindFreeFileEntry(void)
|
|||
Bit16u DOS_PSP::FindEntryByHandle(Bit8u handle)
|
||||
{
|
||||
PhysPt files=Real2Phys(sGet(sPSP,file_table));
|
||||
Bit16u max = sGet(sPSP,max_files);
|
||||
for (Bit16u i=0;i<sGet(sPSP,max_files);i++) {
|
||||
if (mem_readb(files+i)==handle) return i;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue