mirror of
https://github.com/ksherlock/mpw.git
synced 2024-11-28 23:49:26 +00:00
fix bug with read return value
This commit is contained in:
parent
9e6176001a
commit
82d760ebf1
@ -487,6 +487,7 @@ namespace OS
|
||||
ssize_t count = ::read(ioRefNum, memoryPointer(ioBuffer), ioReqCount);
|
||||
if (count >= 0)
|
||||
{
|
||||
d0 = 0;
|
||||
pos += count;
|
||||
memoryWriteLong(count, parm + 40);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user