mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-20 11:09:42 +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;
|
||||
if dos_version >= $300 then
|
||||
begin
|
||||
if cp=dos_env then
|
||||
inc(cp);
|
||||
inc(cp, 3);
|
||||
dos_argv0 := cp;
|
||||
end
|
||||
|
Loading…
Reference in New Issue
Block a user