[NTOS:FSRTL]

- The name of the file can be shorter than 3 symbols

* Fixes 36 tests for kmtest FsRtlLegal

svn path=/trunk/; revision=72535
This commit is contained in:
Dmitry Chapyshev 2016-09-02 20:21:02 +00:00
parent dff1c73022
commit 2725eb9e0b

View file

@ -475,7 +475,7 @@ FsRtlIsFatDbcsLegal(IN ANSI_STRING DbcsName,
}
/* Filename must be 8.3 filename */
if (FirstPart.Length < 3 || FirstPart.Length > 12)
if (FirstPart.Length > 12)
return FALSE;
/* Now, we will parse the filename to find everything bad in */
@ -520,7 +520,7 @@ FsRtlIsFatDbcsLegal(IN ANSI_STRING DbcsName,
if (FirstPart.Buffer[FirstPart.Length - 1] == ' ')
return FALSE;
EndLoop:
EndLoop:
/* Preparing next loop */
Name.Buffer = RemainingPart.Buffer;
Name.Length = RemainingPart.Length;