wasSharpNET

Subversion Repositories:
Compare Path: Rev
With Path: Rev
?path1? @ 26  →  ?path2? @ 27
/Platform/Windows/Commands/NetSH/URLACL.cs
@@ -14,11 +14,11 @@
public class URLACL
{
private readonly string domain;
private readonly int timeout;
private readonly string URL;
 
private readonly Regex URLReservationRegex;
private readonly string username;
private readonly int timeout;
 
public URLACL(string URL, string username, string domain, int timeout)
{
@@ -53,9 +53,7 @@
checkProcess.OutputDataReceived += (sender, output) =>
{
if (output?.Data != null)
{
netSHOutput.Append(output.Data);
}
};
 
checkProcess.Start();
@@ -84,9 +82,7 @@
{
// User cancelled the UAC elevation prompt.
if (ex.NativeErrorCode == 1223)
{
return false;
}
}
 
if (process == null)
@@ -113,9 +109,7 @@
{
// User cancelled the UAC elevation prompt.
if (ex.NativeErrorCode == 1223)
{
return false;
}
}
 
if (process == null)
@@ -124,4 +118,4 @@
return process.WaitForExit(timeout);
}
}
}
}