Allow extra path separators in the startup hook variable
authorVitek Karas <vitek.karas@microsoft.com>
Thu, 4 Apr 2019 07:25:35 +0000 (00:25 -0700)
committerVitek Karas <vitek.karas@microsoft.com>
Thu, 4 Apr 2019 07:25:35 +0000 (00:25 -0700)
Commit migrated from https://github.com/dotnet/coreclr/commit/f5bb175bf5fa9d945f9873fba1aa65079d797058

src/coreclr/src/System.Private.CoreLib/src/System/StartupHookProvider.cs

index 5660b4e..393671c 100644 (file)
@@ -50,7 +50,7 @@ namespace System
                 string startupHookPart = startupHookParts[i];
                 if (string.IsNullOrEmpty(startupHookPart))
                 {
-                    throw new ArgumentException(SR.Argument_InvalidStartupHookSyntax);
+                    continue;
                 }
 
                 if (Path.IsPathFullyQualified(startupHookPart))