* 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:
nickysn 2015-10-12 17:59:51 +00:00
parent f107956169
commit 20e5b3e586

View File

@ -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