- Fixed mix-up of return codes and error codes, and calling of SetIoErr()