mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-07 21:28:03 +02:00
atari: return a valid filehandle in do_open(). this code accidentally worked before with -O2, because the way the reg uses overlapped, but failed with -O-...
git-svn-id: trunk@35227 -
This commit is contained in:
parent
14c365e7b5
commit
f69bfe0ee4
@ -173,7 +173,6 @@ procedure do_open(var f;p:pchar;flags:longint; pchangeable: boolean);
|
||||
}
|
||||
var
|
||||
oldp : pchar;
|
||||
handle : longint;
|
||||
dosResult: longint;
|
||||
begin
|
||||
{ close first if opened }
|
||||
@ -234,7 +233,7 @@ begin
|
||||
exit;
|
||||
end
|
||||
else
|
||||
filerec(f).handle:=handle;
|
||||
filerec(f).handle:=word(dosResult);
|
||||
|
||||
{ append mode }
|
||||
if ((Flags and $100)<>0) and
|
||||
|
Loading…
Reference in New Issue
Block a user