1
0
Fork 0

fix file shortener ID of the drive cache (under rare conditions, bug recently introduced);

use better/faster method to copy the drive cache contents for findfirst, directly related to
the shortname bug found+analyzed by Alexander Katz (sf patch #2194354)


Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@3310
This commit is contained in:
Sebastian Strohhäcker 2009-02-28 11:34:10 +00:00
parent 6934389b52
commit e08513aece
2 changed files with 26 additions and 19 deletions

View file

@ -16,7 +16,7 @@
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/
/* $Id: dos_system.h,v 1.45 2009-02-24 17:56:55 c2woody Exp $ */
/* $Id: dos_system.h,v 1.46 2009-02-28 11:34:04 c2woody Exp $ */
#ifndef DOSBOX_DOS_SYSTEM_H
#define DOSBOX_DOS_SYSTEM_H
@ -187,6 +187,7 @@ private:
bool RemoveSpaces (char* str);
bool OpenDir (CFileInfo* dir, const char* path, Bit16u& id);
void CreateEntry (CFileInfo* dir, const char* name, Bitu query_directory);
void CopyEntry (CFileInfo* dir, CFileInfo* from);
Bit16u GetFreeID (CFileInfo* dir);
void Clear (void);