#13 Environment block and no env-strings

v0.50
closed
Sjoerd
None
5
2012-09-07
2002-07-29
Ulf Wohlers
No

Dont know if this is really a dosbox bug. If you start
some progs from command line with dosbox these games
crashes or dont load. If they are started in dosbox
(shell) they work
better. I tracked this down to the missing environment
strings if you start from command line. These progs are
parsing the env-strings and if there are no
env-strings, the two \0-bytes are missing at the end
(there's only one), these routines fail then and
strange things happen (eg.mem-overwrites).
The dosbox-env-block looks fine, so this might be a
problem of these game-routines, when they copy the
env-block-area ?!

Examples:
Dungeon master: start from command-line and game stops
with a "abnormal termination"-Error. Start from shell
and at least the title screen appears.
EOB1 works perfect from shell, stops after intro if you
start from command-line.

Discussion

  • Sjoerd
    Sjoerd
    2002-07-30

    Logged In: YES
    user_id=153968

    Checked it over a bit, seems to be a problem with the shell startup routine.
    The shell doesn't get a correct environment at startup and there aren't any
    "SET BLAH" commands before the actual program is start. Changing
    the order a bit.