Skip to content

Commit bbfe998

Browse files
committed
DependencyChecker - Switch to using Uri.TryCreate as is more fault tolerant
1 parent 23a7249 commit bbfe998

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

CefSharp/DependencyChecker.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -176,7 +176,8 @@ public static void AssertAllDependenciesPresent(string locale = null, string loc
176176
{
177177
string path;
178178

179-
if(new Uri(browserSubProcessPath).IsAbsoluteUri)
179+
Uri pathUri;
180+
if(Uri.TryCreate(browserSubProcessPath, UriKind.Absolute, out pathUri) && pathUri.IsAbsoluteUri)
180181
{
181182
path = Path.GetDirectoryName(browserSubProcessPath);
182183
}

0 commit comments

Comments
 (0)