mirror of
https://github.com/winfsp/winfsp.git
synced 2026-10-29 22:54:13 -05:00
1 parent
57e0a24dd0
commit
d0bd2170bd
1 file changed
+5
@@ -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';
|
||||
|
||||
Reference in new issue
Block a user