From 02629c4eee84064278979b37d0fe0a019b6e607f Mon Sep 17 00:00:00 2001 From: Kelvin Sherlock Date: Sat, 17 Aug 2019 10:33:12 -0400 Subject: [PATCH] 0-byte read request should not trigger eof error. --- toolbox/os.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/toolbox/os.cpp b/toolbox/os.cpp index ea7aea0..cf5b702 100644 --- a/toolbox/os.cpp +++ b/toolbox/os.cpp @@ -511,7 +511,7 @@ namespace OS memoryWriteLong(count, parm + 40); } - if (count == 0) + if (count == 0 && ioReqCount > 0) { d0 = MacOS::eofErr; }