Merge branch 'pvt-fix674'

This commit is contained in:
Bill Zissimopoulos
2026-07-29 14:54:07 +03:00
+5
View File
@@ -127,6 +127,11 @@ HANDLE FspCreateDirectoryFileW(
Length = GetFullPathNameW(FileName, Length + 1, FullFileName, &FilePart); Length = GetFullPathNameW(FileName, Length + 1, FullFileName, &FilePart);
if (0 == Length) if (0 == Length)
goto exit; goto exit;
if (0 == FilePart)
{
SetLastError(ERROR_INVALID_NAME);
goto exit;
}
FilePartChar = *FilePart; FilePartChar = *FilePart;
*FilePart = L'\0'; *FilePart = L'\0';