+ Fixed objinc such that it really compiles

This commit is contained in:
michael 1998-05-22 07:46:07 +00:00
parent b0b403d498
commit 4afe7023c2

View File

@ -56,11 +56,17 @@ BEGIN
END;
FUNCTION SetFileSize (Handle: THandle; FileSize: LongInt): Word;
Var sr : syscallregs;
{$IFDEF DOSSETFILE1}
VAR Actual, Buf: LongInt;
Actual, Buf: LongInt;
{$ENDIF}
BEGIN
if Sys_Truncate(Handle,FileSize)=0 then
sr.reg2:=Handle;
sr.reg3:=FileSize;
Syscall(syscall_nr_Truncate,sr);
If Errno=0 then
SetFileSize:=0
else
SetFileSize:=103;