dos.library: Accurately report the error on failure of LoadSeg()
commit870f4140348083522d87addb9a82e2f216375b04
authorjmcmullan <jmcmullan@fb15a70f-31f2-0310-bbcc-cdcc74a49acc>
Mon, 18 Jul 2011 03:27:16 +0000 (18 03:27 +0000)
committerjmcmullan <jmcmullan@fb15a70f-31f2-0310-bbcc-cdcc74a49acc>
Mon, 18 Jul 2011 03:27:16 +0000 (18 03:27 +0000)
tree9a85a317cae8c6daa9957770acac3cda46fe92ff
parent33b7fb331a43e4b11d7cca835eec5364bc80b578
dos.library: Accurately report the error on failure of LoadSeg()

Previously, the Close() at the end of LoadSeg() would always set IoErr() to 0,
which prevented C:Shell from getting ERROR_NOT_EXECUTABLE, which
prevented C:Shell from recognizing shell scripts and passing them to C:Execute.

All fixed now, by simply caching the IoErr() from InternalLoadSeg(), and
resetting it after the close

Signed-off-by: Jason S. McMullan <jason.mcmullan@gmail.com>
git-svn-id: https://svn.aros.org/svn/aros/trunk/AROS@40198 fb15a70f-31f2-0310-bbcc-cdcc74a49acc
rom/dos/loadseg.c