* modified to make use of the common GetEnv code

This commit is contained in:
Tomas Hajny 2003-01-04 16:25:08 +00:00
parent 7248252a23
commit da39d0fe52

View File

@ -936,12 +936,8 @@ end;
Function GetEnvironmentVariable(Const EnvVar : String) : String; Function GetEnvironmentVariable(Const EnvVar : String) : String;
var P: PChar;
begin begin
if DosScanEnv (PChar (EnvVar), P) = 0 GetEnvironmentVariable := StrPas (GetEnvPChar (EnvVar));
then GetEnvironmentVariable := StrPas (P)
else GetEnvironmentVariable := '';
end; end;
@ -958,7 +954,10 @@ end.
{ {
$Log$ $Log$
Revision 1.20 2003-01-03 20:41:04 peter Revision 1.21 2003-01-04 16:25:08 hajny
* modified to make use of the common GetEnv code
Revision 1.20 2003/01/03 20:41:04 peter
* FileCreate(string,mode) overload added * FileCreate(string,mode) overload added
Revision 1.19 2002/11/18 19:51:00 hajny Revision 1.19 2002/11/18 19:51:00 hajny