mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-16 10:19:30 +02:00
* patch from anton fixing TFilestream modes. Mantis #19448
git-svn-id: trunk@17614 -
This commit is contained in:
parent
f387d6bbaa
commit
ce8fbf62d4
@ -1570,7 +1570,7 @@ AChm: TChmReader;
|
||||
AIndex: Integer;
|
||||
begin
|
||||
if not FileExists(AFileName) then exit;
|
||||
AStream := TFileStream.Create(AFileName, fmOpenRead, fmShareDenyWrite);
|
||||
AStream := TFileStream.Create(AFileName, fmOpenRead or fmShareDenyWrite);
|
||||
AChm := TChmReader.Create(AStream, True);
|
||||
AIndex := AddObject(AFileName, AChm);
|
||||
fLastChm := AChm;
|
||||
|
Loading…
Reference in New Issue
Block a user