r27195@plastic: rob | 2007-09-07 07:49:52 +1000
Make ErrorReport() set the process error code, but only when the requester is
actually displayed.
AOS autodocs say:
Note: this routine sets IoErr() to code before returning.
Guru Book says nothing about it (which is why I didn't notice it in the first
place).
The code we got back from Morphos sets the error code only when the requester
is displayed, so this code now mimics that.
I think it would be be better to set the error code before every return so
that ErrorReport() could be used anywhere SetIoErr(), and that would match the
autodocs, but Morphos has done it this way for a reason; perhaps thats closer
to what AOS used to do. I'll ask around.
git-svn-id: https://svn.aros.org:8080/svn/aros/trunk/AROS@26502 fb15a70f-31f2-0310-bbcc-cdcc74a49acc