mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-09-15 12:29:32 +02:00
Open fp.dsk for load in Read access only mode
This commit is contained in:
parent
530f08d9d3
commit
8b10637036
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user