mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-12 09:30:08 +02:00
* load environment on msdos if parameters are loaded, so paramstr(0) is loaded as well
git-svn-id: trunk@38205 -
This commit is contained in:
parent
092223f400
commit
c63c3e99c7
@ -367,6 +367,8 @@ var
|
||||
arg: PChar;
|
||||
doscmd : string[129]; { Dos commandline copied from PSP, max is 128 chars +1 for terminating zero }
|
||||
begin
|
||||
{ force environment to be setup so dos_argv0 is loaded }
|
||||
envp;
|
||||
{ load commandline from psp }
|
||||
SetLength(doscmd, Mem[PrefixSeg:$80]);
|
||||
for I := 1 to length(doscmd) do
|
||||
|
Loading…
Reference in New Issue
Block a user