mirror of
https://gitlab.com/freepascal.org/fpc/pas2js.git
synced 2025-04-05 11:17:45 +02:00
* Correct write at
This commit is contained in:
parent
c1a482a13e
commit
767c226db7
@ -296,7 +296,7 @@ begin
|
||||
try
|
||||
DS:=TJSDataView.New(Data.buffer);
|
||||
if atPos<>-1 then
|
||||
Written:=ZenFS.writeSync(fd,DS,atPos)
|
||||
Written:=ZenFS.writeSync(fd,DS,0,Data.byteLength,atPos)
|
||||
else
|
||||
Written:=ZenFS.writeSync(fd,DS,0,Data.byteLength);
|
||||
Result:=resOK;
|
||||
|
Loading…
Reference in New Issue
Block a user