@ -70,7 +70,10 @@ namespace SharpPrintNightmare
dllpath = args[0];
if (dllpath.Contains("\\\\"))
{
dllpath = dllpath.Replace("\\\\", "\\??\\UNC\\");
// only replace the first occurence of \\\\
string pattern = "\\\\";
int position = dllpath.IndexOf("\\\\");
dllpath = dllpath.Remove(position, pattern.Length).Insert(position, "\\??\\UNC\\");
}
if (args.Length > 2)