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