mirror of
https://github.com/moparisthebest/Simba
synced 2024-11-25 10:42:20 -05:00
ReadFileString didn't return a correct value.
This commit is contained in:
parent
478ebec14d
commit
f370f865d4
@ -413,8 +413,7 @@ begin
|
|||||||
end;
|
end;
|
||||||
|
|
||||||
SetLength(S, X);
|
SetLength(S, X);
|
||||||
MFiles[FileNum].FS.Read(S[1], x);
|
Result := MFiles[FileNum].FS.Read(S[1], x) = x;
|
||||||
|
|
||||||
{Files[FileNum].BytesRead := Files[FileNum].BytesRead + X;
|
{Files[FileNum].BytesRead := Files[FileNum].BytesRead + X;
|
||||||
FileRead(Files[FileNum].Handle, S[1], X);
|
FileRead(Files[FileNum].Handle, S[1], X);
|
||||||
SetLength(S, X); }
|
SetLength(S, X); }
|
||||||
|
Loading…
Reference in New Issue
Block a user