From d95aa00127d375bf34fa1b895a18a3f39b0f77ab Mon Sep 17 00:00:00 2001 From: Ulf Wohlers Date: Mon, 22 Sep 2003 12:20:51 +0000 Subject: [PATCH] Use new FindFirst/FindNext methods of drive-cache Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@1258 --- src/dos/drive_local.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/dos/drive_local.cpp b/src/dos/drive_local.cpp index 4abace09..f10fbed7 100644 --- a/src/dos/drive_local.cpp +++ b/src/dos/drive_local.cpp @@ -110,7 +110,8 @@ bool localDrive::FindFirst(char * _dir,DOS_DTA & dta) { if (tempDir[strlen(tempDir)-1]!=CROSS_FILESPLIT) strcat(tempDir,end); Bit16u id; - if (!dirCache.OpenDir(tempDir,id)) +// if (!dirCache.OpenDir(tempDir,id)) + if (!dirCache.FindFirst(tempDir,id)) { DOS_SetError(DOSERR_PATH_NOT_FOUND); return false; @@ -145,7 +146,8 @@ bool localDrive::FindNext(DOS_DTA & dta) { Bit16u id = dta.GetDirID(); again: - if (!dirCache.ReadDir(id,dir_ent)) { +// if (!dirCache.ReadDir(id,dir_ent)) { + if (!dirCache.FindNext(id,dir_ent)) { DOS_SetError(DOSERR_NO_MORE_FILES); return false; }