Zhiyi Zhang (@zhiyi) commented about dlls/kernelbase/file.c:
TRACE( "%s\n", debugstr_w(path) );
- if (path && !is_longpath_enabled() && wcsncmp(path, L"\\?\", 4) && wcslen(path) >= MAX_PATH )
Do you really need to check if path is NULL? I don't see tests regarding this condition. If you do, the error should probably be ERROR_INVALID_PARAMETER.