Rename a parameter (#32841)
authorNext Turn <45985406+NextTurn@users.noreply.github.com>
Wed, 26 Feb 2020 06:50:23 +0000 (14:50 +0800)
committerGitHub <noreply@github.com>
Wed, 26 Feb 2020 06:50:23 +0000 (22:50 -0800)
src/libraries/System.Private.CoreLib/src/System/Runtime/Loader/LibraryNameVariation.Unix.cs
src/libraries/System.Private.CoreLib/src/System/Runtime/Loader/LibraryNameVariation.Windows.cs

index 322c751..c63ff94 100644 (file)
@@ -16,7 +16,7 @@ namespace System.Runtime.Loader
         private const string LibraryNameSuffix = ".so";
 #endif
 
-        internal static IEnumerable<LibraryNameVariation> DetermineLibraryNameVariations(string libName, bool isRelativePath, bool forSystemApi = false)
+        internal static IEnumerable<LibraryNameVariation> DetermineLibraryNameVariations(string libName, bool isRelativePath, bool forOSLoader = false)
         {
             // This is a copy of the logic in DetermineLibNameVariations in dllimport.cpp in CoreCLR
 
index f1f226e..902e878 100644 (file)
@@ -10,15 +10,15 @@ namespace System.Runtime.Loader
     {
         private const string LibraryNameSuffix = ".dll";
 
-        internal static IEnumerable<LibraryNameVariation> DetermineLibraryNameVariations(string libName, bool isRelativePath, bool forSystemApi = false)
+        internal static IEnumerable<LibraryNameVariation> DetermineLibraryNameVariations(string libName, bool isRelativePath, bool forOSLoader = false)
         {
             // This is a copy of the logic in DetermineLibNameVariations in dllimport.cpp in CoreCLR
 
             yield return new LibraryNameVariation(string.Empty, string.Empty);
 
-            // Follow LoadLibrary rules if forSystemApi is true
+            // Follow LoadLibrary rules if forOSLoader is true
             if (isRelativePath &&
-                (!forSystemApi || libName.Contains('.') && !libName.EndsWith('.')) &&
+                (!forOSLoader || libName.Contains('.') && !libName.EndsWith('.')) &&
                 !libName.EndsWith(".dll", StringComparison.OrdinalIgnoreCase) &&
                 !libName.EndsWith(".exe", StringComparison.OrdinalIgnoreCase))
             {