3
Vote

Bugs when paths to folders are 248, 249 & 250 characters long

description

There are bugs in Zlp when the path to a folder is 248, 249 or 250 characters long. Zlp does not prepend the \?\ unless the total path length is over 250 and the Win32 functions fail due to the 248-character limit for short paths to a folder.
Simple workaround:
In PInvokeHelper.cs, change MAX_PATH from 250 to 247
    //internal const int MAX_PATH = 250;
    internal const int MAX_PATH = 247;

comments