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.