mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-08-15 05:49:12 +02:00
* handle empty environment correctly when initializing argv0 under msdos.
Patch by Max Nazhalov, mantis #28705. git-svn-id: trunk@32028 -
This commit is contained in:
parent
f107956169
commit
20e5b3e586
@ -202,6 +202,8 @@ begin
|
|||||||
dos_env_count := env_count;
|
dos_env_count := env_count;
|
||||||
if dos_version >= $300 then
|
if dos_version >= $300 then
|
||||||
begin
|
begin
|
||||||
|
if cp=dos_env then
|
||||||
|
inc(cp);
|
||||||
inc(cp, 3);
|
inc(cp, 3);
|
||||||
dos_argv0 := cp;
|
dos_argv0 := cp;
|
||||||
end
|
end
|
||||||
|
Loading…
Reference in New Issue
Block a user