mirror of
https://github.com/red-prig/fpPS4.git
synced 2025-02-19 22:01:00 +00:00
small fix readv/writev
This commit is contained in:
parent
56cf06618d
commit
38a18ed2c0
@ -259,7 +259,7 @@ begin
|
||||
begin
|
||||
n:=read(vector[i].iov_base,vector[i].iov_len);
|
||||
|
||||
if (n>0) then
|
||||
if (n>=0) then
|
||||
begin
|
||||
Result:=Result+n;
|
||||
if (n<vector[i].iov_len) then Exit;
|
||||
@ -301,7 +301,7 @@ begin
|
||||
begin
|
||||
n:=write(vector[i].iov_base,vector[i].iov_len);
|
||||
|
||||
if (n>0) then
|
||||
if (n>=0) then
|
||||
begin
|
||||
Result:=Result+n;
|
||||
if (n<vector[i].iov_len) then Exit;
|
||||
|
Loading…
x
Reference in New Issue
Block a user