From 82d760ebf11e7faaaae6a47c52342edd53c53e87 Mon Sep 17 00:00:00 2001 From: Kelvin Sherlock Date: Mon, 25 Feb 2013 17:34:40 -0500 Subject: [PATCH] fix bug with read return value --- toolbox/os.cpp | 1 + 1 file changed, 1 insertion(+) 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); }