Compare commits

..

1 commit

Author SHA1 Message Date
44bfde4a09 GetFInfo: initialize ioFDirIndex
According to Inside Macintosh Volume (IV-148/149) this field must be
set to 0 in order to use the name in ioNamePtr.
2025-06-30 18:55:50 +01:00

View file

@ -427,6 +427,7 @@ pascal OSErr GetFInfo(ConstStr255Param fileName, short vRefNum,
pb.fileParam.ioVRefNum = vRefNum;
pb.fileParam.ioNamePtr = (StringPtr)fileName;
pb.fileParam.ioFVersNum = 0;
pb.fileParam.ioFDirlndex = 0;
err = PBGetFInfoSync(&pb);
*fndrInfo = pb.fileParam.ioFlFndrInfo;
return err;