Re: [PATCH v10 0/5] MR7540: kernel32/tests: Add tests for maximum path length limitation.
16 Jun
2025
16 Jun
'25
10:55 a.m.
Zhiyi Zhang (@zhiyi) commented about dlls/kernelbase/file.c:
SetLastError( ERROR_INVALID_PARAMETER ); return FALSE; } + + if (!RtlGetCurrentPeb()->IsLongPathAwareProcess && wcsncmp(source, L"\\\\?\\", 4) && wcslen(source) >= MAX_PATH )
Let reorder the conditions to `wcslen(source) >= MAX_PATH && wcsncmp(source, L"\\\\?\\", 4) && !RtlGetCurrentPeb()->IsLongPathAwareProcess)`. I find it clearer this way. -- https://gitlab.winehq.org/wine/wine/-/merge_requests/7540#note_106688
263
Age (days ago)
263
Last active (days ago)
0 comments
1 participants
participants (1)
-
Zhiyi Zhang (@zhiyi)