mirror of
https://github.com/cefsharp/CefSharp.git
synced 2026-12-06 12:09:40 +00:00
DependencyChecker - Switch to using Uri.TryCreate as is more fault tolerant
This commit is contained in:
@@ -176,7 +176,8 @@ namespace CefSharp
|
||||
{
|
||||
string path;
|
||||
|
||||
if(new Uri(browserSubProcessPath).IsAbsoluteUri)
|
||||
Uri pathUri;
|
||||
if(Uri.TryCreate(browserSubProcessPath, UriKind.Absolute, out pathUri) && pathUri.IsAbsoluteUri)
|
||||
{
|
||||
path = Path.GetDirectoryName(browserSubProcessPath);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user