Open fp.dsk for load in Read access only mode

This commit is contained in:
Margers 2024-11-11 07:37:59 +00:00 committed by Michael Van Canneyt
parent 530f08d9d3
commit 8b10637036

View File

@ -793,7 +793,7 @@ end;
constructor TResourceFile.LoadFile(AFileName: string);
var B: PFastBufStream;
begin
New(B, Init(AFileName, stOpen, 4096));
New(B, Init(AFileName, stOpenRead, 4096));
if (B<>nil) and (B^.Status<>stOK) then
begin Dispose(B, Done); B:=nil; end;
if B=nil then Fail;