1
0
Fork 0

Give PSP:SetNumFiles a few more files then requested (hack)

Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@1284
This commit is contained in:
Ulf Wohlers 2003-09-30 13:51:15 +00:00
parent 319c12c235
commit efd7d24b2e

View file

@ -16,7 +16,7 @@
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/
/* $Id: dos_classes.cpp,v 1.30 2003-08-19 20:05:47 qbix79 Exp $ */
/* $Id: dos_classes.cpp,v 1.31 2003-09-30 13:51:15 finsterr Exp $ */
#include <string.h>
#include <stdlib.h>
@ -236,6 +236,7 @@ bool DOS_PSP::SetNumFiles(Bit16u fileNum)
{
if (fileNum>20) {
// Allocate needed paragraphs
fileNum+=2; // Add a few more files for safety
Bit16u para = (fileNum/16)+((fileNum%16)>0);
RealPt data = RealMake(DOS_GetMemory(para),0);
sSave(sPSP,file_table,data);