mirror of
https://github.com/ksherlock/mpw.git
synced 2025-01-24 03:34:42 +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);
|
ssize_t count = ::read(ioRefNum, memoryPointer(ioBuffer), ioReqCount);
|
||||||
if (count >= 0)
|
if (count >= 0)
|
||||||
{
|
{
|
||||||
|
d0 = 0;
|
||||||
pos += count;
|
pos += count;
|
||||||
memoryWriteLong(count, parm + 40);
|
memoryWriteLong(count, parm + 40);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user