mirror of
https://github.com/reactos/reactos.git
synced 2025-01-05 22:12:46 +00:00
don't crash when Buffer is NULL
svn path=/trunk/; revision=30577
This commit is contained in:
parent
735f6dcf69
commit
17095a0c94
1 changed files with 1 additions and 1 deletions
|
@ -255,7 +255,7 @@ RtlIsNameLegalDOS8Dot3(IN PCUNICODE_STRING UnicodeName,
|
|||
if (RtlUpcaseUnicodeStringToCountedOemString( AnsiName, UnicodeName, FALSE ) != STATUS_SUCCESS)
|
||||
return FALSE;
|
||||
|
||||
if (AnsiName->Length > 12) return FALSE;
|
||||
if ((AnsiName->Length > 12) || (AnsiName->Buffer == NULL)) return FALSE;
|
||||
|
||||
/* a starting . is invalid, except for . and .. */
|
||||
if (AnsiName->Buffer[0] == '.')
|
||||
|
|
Loading…
Reference in a new issue