DOS_GetFileDate (in src/dos/dos_files.cpp) uses RealHandle(entry)
as file handle on the real filesystem, which is wrong (the real file
handle is stored inside the DOS_Files[handle] class instance).
DOS_GetFileDate should probably be implemented as a method of
the DOS_File or localFile class. It could possibly call through to the
localDrive::FileStat() method, though I'm not sure how to get the
correct localDrive from the DOS_File/localFile instance.
GetFileDate (and SetFileDate) seem to be necessary for Turbo
Pascal 7 to be able to save any files (it has something to do with
creating backups of the source files).
I'll attach a test program.
Log in to post a comment.