dll: FspCreateDirectoryFileW: handle trailing backslash

Fixes #674
This commit is contained in:
Bill Zissimopoulos
2026-07-28 19:02:09 +03:00
parent 57e0a24dd0
commit d0bd2170bd
+5
View File
@@ -127,6 +127,11 @@ HANDLE FspCreateDirectoryFileW(
Length = GetFullPathNameW(FileName, Length + 1, FullFileName, &FilePart);
if (0 == Length)
goto exit;
if (0 == FilePart)
{
SetLastError(ERROR_INVALID_NAME);
goto exit;
}
FilePartChar = *FilePart;
*FilePart = L'\0';