r27195@plastic: rob | 2007-09-07 07:49:52 +1000
commit50ff13d13efa798571d6ac0645c976e41bb9a46f
authorrob <rob@fb15a70f-31f2-0310-bbcc-cdcc74a49acc>
Thu, 6 Sep 2007 21:58:25 +0000 (6 21:58 +0000)
committerrob <rob@fb15a70f-31f2-0310-bbcc-cdcc74a49acc>
Thu, 6 Sep 2007 21:58:25 +0000 (6 21:58 +0000)
tree751564cb0451295a05305e40e2904a330a8c7244
parenta8f2aa405c56dfb3b6fe2ac96df656253be0482b
 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
rom/dos/errorreport.c
rom/dos/getdeviceproc.c