1
0
Fork 0

Don't count trailing spaces when checking if path is too long. Enable all write planes in the EGA FillRow function. Fixes crash and glitched graphics in Quest Maker 2 and derived adventure games (House of No Doors, Hot Rod Harry, et al).

Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@3881
This commit is contained in:
ripsaw8080 2015-01-06 17:33:39 +00:00
parent d2209e10b5
commit 58a149deec
2 changed files with 3 additions and 0 deletions

View file

@ -101,6 +101,7 @@ bool DOS_MakeName(char const * const name,char * const fullname,Bit8u * drive) {
break;
}
}
while (r>0 && name_int[r-1]==' ') r--;
if (r>=DOS_PATHLENGTH) { DOS_SetError(DOSERR_PATH_NOT_FOUND);return false; }
upname[w]=0;
/* Now parse the new file name to make the final filename */