In CopyFileEx, and DeleteFile functions, by default, the file name
and path are limited to MAX_PATH characters. To extend this limit
to 32,767 wide characters, need prepend "\\\\?\\" to the path.
--
v15: kernelbase: Limit the maximum path length for DeleteFile.
kernelbase: Fix DeleteFileA doesn't support long path.
kernelbase: Limit the maximum path length for filesystem.
ntdll: Check if long path aware is enabled.
kernel32/tests: Add tests for DeleteFile
kernel32/tests: Add tests for maximum path length limitation.
https://gitlab.winehq.org/wine/wine/-/merge_requests/7540
On Sun Aug 31 16:55:44 2025 +0000, Bernhard Übelacker wrote:
> Thanks for looking into it. By replacing the body of
> property_value_statics_CreateString with above version (and renaming the
> parameter value to value_str) ASan stays silent and the test succeeds here.
Thanks, I'll create an MR for the fix them (:
--
https://gitlab.winehq.org/wine/wine/-/merge_requests/8831#note_114367