diff --git a/README.md b/README.md
index 857fe88..d6878ce 100644
--- a/README.md
+++ b/README.md
@@ -14,7 +14,6 @@ Ported to Win32 by Rick Parrish
TODO list:
- Implement any REETODOs that appear in compiled executables
- - Anything passing 0 for the Attr parameter to FindFirst should pass AnyFile instead (VP returns no files when 0 is passed for Attr)
- Investigate FILEMODE usage to see if FILEMODEREADWRITE, TEXTMODEREAD or TEXTMODEREADWRITE should be used
- Find/correct any usage of FOR loop variables after the loop (since they are 1 greater in VP than in BP
- Find/correct any file i/o on untyped files where Words or LongInts are being read
@@ -28,4 +27,5 @@ Completed list
- TYPEs of OF INTEGER to OF SMALLINT (just in case they're used in a RECORD)
- WORD in RECORD to SMALLWORD
- INTEGER in RECORD to SMALLINT
+ - Anything passing 0 for the Attr parameter to FindFirst should pass AnyFile instead (VP returns no files when 0 is passed for Attr)
diff --git a/SOURCE/COMMON.PAS b/SOURCE/COMMON.PAS
index e9ba19e..33b9bfb 100644
--- a/SOURCE/COMMON.PAS
+++ b/SOURCE/COMMON.PAS
@@ -3857,7 +3857,7 @@ FUNCTION MaxChatRec: LongInt;
VAR
DirInfo1: SearchRec;
BEGIN
- FindFirst(General.TempPath+'MSG'+IntToStr(ThisNode)+'.TMP',0,DirInfo1);
+ FindFirst(General.TempPath+'MSG'+IntToStr(ThisNode)+'.TMP',AnyFile,DirInfo1);
IF (DOSError = 0) THEN
MaxChatRec := DirInfo1.Size
ELSE
@@ -3868,7 +3868,7 @@ FUNCTION MaxNodes: Byte;
VAR
DirInfo1: SearchRec;
BEGIN
- FindFirst(General.DataPath+'MULTNODE.DAT',0,DirInfo1);
+ FindFirst(General.DataPath+'MULTNODE.DAT',AnyFile,DirInfo1);
IF (DOSError = 0) THEN
MaxNodes := (DirInfo1.Size DIV SizeOf(NodeRecordType))
ELSE
@@ -3963,7 +3963,7 @@ FUNCTION MaxUsers: Integer;
VAR
DirInfo1: SearchRec;
BEGIN
- FindFirst(General.DataPath+'USERS.DAT',0,DirInfo1);
+ FindFirst(General.DataPath+'USERS.DAT',AnyFile,DirInfo1);
IF (DOSError = 0) THEN
MaxUsers := (DirInfo1.Size DIV SizeOf(UserRecordType))
ELSE
@@ -3974,7 +3974,7 @@ FUNCTION MaxIDXRec: Integer;
VAR
DirInfo1: SearchRec;
BEGIN
- FindFirst(General.DataPath+'USERS.IDX',0,DirInfo1);
+ FindFirst(General.DataPath+'USERS.IDX',AnyFile,DirInfo1);
IF (DOSError = 0) THEN
MaxIDXRec := (DirInfo1.Size DIV SizeOf(UserIDXRec))
ELSE
@@ -3987,7 +3987,7 @@ FUNCTION HiMsg: Word;
VAR
DirInfo1: SearchRec;
BEGIN
- FindFirst(General.MsgPath+MemMsgArea.FileName+'.HDR',0,DirInfo1);
+ FindFirst(General.MsgPath+MemMsgArea.FileName+'.HDR',AnyFile,DirInfo1);
IF (DOSError = 0) THEN
HiMsg := (DirInfo1.Size DIV SizeOf(MHeaderRec))
ELSE
diff --git a/SOURCE/RENEMAIL.PAS b/SOURCE/RENEMAIL.PAS
index 3c0096e..508fb88 100644
--- a/SOURCE/RENEMAIL.PAS
+++ b/SOURCE/RENEMAIL.PAS
@@ -762,7 +762,7 @@ BEGIN
LogError(MemMsgPath+'HI_WATER.MRK/Read Record 0 Error - '+IntToStr(LastError)+' (Proc: GetMsgList)');
Exit;
END;
- FindFirst(MemMsgPath+IntToStr(HiWater)+'.MSG',0,DirInfo);
+ FindFirst(MemMsgPath+IntToStr(HiWater)+'.MSG',AnyFile,DirInfo);
IF (DOSError <> 0) THEN
HiWater := 1;
END;
@@ -779,7 +779,7 @@ BEGIN
END;
HighMsg := 1;
LowMsg := 65535;
- FindFirst(MemMsgPath+'*.MSG',0,DirInfo);
+ FindFirst(MemMsgPath+'*.MSG',AnyFile,DirInfo);
WHILE (DOSError = 0) DO
BEGIN
FidoMsgNum := StrToInt(DirInfo.Name);
@@ -868,7 +868,7 @@ BEGIN
ELSE
BEGIN
Purged := TRUE;
- FindFirst(MemMsgPath+'*.MSG',0,DirInfo);
+ FindFirst(MemMsgPath+'*.MSG',AnyFile,DirInfo);
IF (DOSError <> 0) THEN
Purged := FALSE
ELSE