add comment

This commit is contained in:
User
2019-12-03 19:33:45 -08:00
parent b1b45228c2
commit 74b0811061
@@ -35,6 +35,7 @@ namespace Duplicati.Library.Common.IO
private static bool IsPathTooLong(string path)
{
// Use 258 for length check instead of 260 (MAX_PATH) - we need to leave room for the 16-bit (wide) null terminator
return path.StartsWith(UNCPREFIX, StringComparison.Ordinal) || path.StartsWith(UNCPREFIX_SERVER, StringComparison.Ordinal) || path.Length > 258;
}