diff --git a/toolbox/os.cpp b/toolbox/os.cpp index 519a5bb..f453f6a 100644 --- a/toolbox/os.cpp +++ b/toolbox/os.cpp @@ -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); }