* Fix bug #33446, crash if filename does not exist, patch by Werner Pamler

git-svn-id: trunk@38547 -
This commit is contained in:
michael 2018-03-17 09:44:06 +00:00
parent 574b1e62e9
commit a795ff2e2e

View File

@ -653,7 +653,7 @@ end;
procedure TMemDataset.InternalOpen;
begin
If (FFileName<>'') then
If (FFileName<>'') and FileExists(FFileName) then
FOpenStream:=TFileStream.Create(FFileName,fmOpenRead);
Try
InternalInitFieldDefs;