Moved DOS handle allocation slightly, to fix potential memory
leaks and lost handles. Also removed some useless init code.

1 file changed