1
0
Fork 0

Fix creation of devices using FCB_Create. Fixes MS Object linker 1.10 and thus bug #435.

Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@3971
This commit is contained in:
Peter Veenstra 2016-03-18 16:48:25 +00:00
parent 663c86378f
commit f59ebfd303

View file

@ -479,7 +479,7 @@ bool DOS_CreateFile(char const * name,Bit16u attributes,Bit16u * entry,bool fcb)
// Creation of a device is the same as opening it
// Tc201 installer
if (DOS_FindDevice(name) != DOS_DEVICES)
return DOS_OpenFile(name, OPEN_READ, entry);
return DOS_OpenFile(name, OPEN_READ, entry, fcb);
LOG(LOG_FILES,LOG_NORMAL)("file create attributes %X file %s",attributes,name);
char fullname[DOS_PATHLENGTH];Bit8u drive;