atari: fixed file opening, we can now read text files at least on this platform

git-svn-id: trunk@34696 -
This commit is contained in:
Károly Balogh 2016-10-09 13:23:59 +00:00
parent 5efb32285a
commit 63166555a2

View File

@ -222,13 +222,19 @@ begin
if (flags and $1000)<>0 then
dosResult:=gemdos_fcreate(p,0)
else
dosResult:=gemdos_fopen(p,filerec(f).mode);
dosResult:=gemdos_fopen(p,flags and 3);
if oldp<>p then
freemem(p);
if dosResult < 0 then
Error2InOutRes(dosResult);
begin
Error2InOutRes(dosResult);
filerec(f).mode:=fmClosed;
exit;
end
else
filerec(f).handle:=handle;
{ append mode }
if ((Flags and $100)<>0) and