Browse Source

* For Win64, handle environment variables the same way as on Win32 (the generic version of GetEnvPChar does not return nil for non-existent environment variables).

git-svn-id: trunk@21035 -
sergei 13 years ago
parent
commit
3edaa66ee7
1 changed files with 2 additions and 2 deletions
  1. 2 2
      compiler/globals.pas

+ 2 - 2
compiler/globals.pas

@@ -822,7 +822,7 @@ implementation
  ****************************************************************************}
 
     function GetEnvPChar(const envname:string):pchar;
-      {$ifdef win32}
+      {$ifdef mswindows}
       var
         s     : string;
         i,len : longint;
@@ -833,7 +833,7 @@ implementation
         GetEnvPchar:=BaseUnix.fpGetEnv(envname);
         {$define GETENVOK}
       {$endif}
-      {$ifdef win32}
+      {$ifdef mswindows}
         GetEnvPchar:=nil;
         p:=GetEnvironmentStrings;
         hp:=p;