mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-09-28 17:19:18 +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);
|
constructor TResourceFile.LoadFile(AFileName: string);
|
||||||
var B: PFastBufStream;
|
var B: PFastBufStream;
|
||||||
begin
|
begin
|
||||||
New(B, Init(AFileName, stOpen, 4096));
|
New(B, Init(AFileName, stOpenRead, 4096));
|
||||||
if (B<>nil) and (B^.Status<>stOK) then
|
if (B<>nil) and (B^.Status<>stOK) then
|
||||||
begin Dispose(B, Done); B:=nil; end;
|
begin Dispose(B, Done); B:=nil; end;
|
||||||
if B=nil then Fail;
|
if B=nil then Fail;
|
||||||
|
Loading…
Reference in New Issue
Block a user