[Libreoffice-bugs] [Bug 138615] Insure Windows wildcards work properly with long paths

bugzilla-daemon at bugs.documentfoundation.org bugzilla-daemon at bugs.documentfoundation.org
Wed Dec 2 07:03:31 UTC 2020


https://bugs.documentfoundation.org/show_bug.cgi?id=138615

--- Comment #1 from Mike Kaganski <mikekaganski at hotmail.com> ---
I would suggest using PathCchCanonicalizeEx for this, with
PATHCCH_ENSURE_IS_EXTENDED_LENGTH_PATH flag. It fits perfectly for the task,
except conversion of "/" into "\" - it does everything else, like removing "."
and "..", making sure the path has the "\\?\" in case when the mask is shorter
than 2MAX_PATH, but the found name would be longer ... but the problem is, the
function is supported since Windows 8, while our baseline is Windows 7 still.

[1]
https://docs.microsoft.com/en-us/windows/win32/api/pathcch/nf-pathcch-pathcchcanonicalizeex

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/libreoffice-bugs/attachments/20201202/98c70616/attachment-0001.htm>


More information about the Libreoffice-bugs mailing list