diff --git a/drivers/filesystems/cdfs/namesup.c b/drivers/filesystems/cdfs/namesup.c index 58da1b99b40..d55d0c01503 100644 --- a/drivers/filesystems/cdfs/namesup.c +++ b/drivers/filesystems/cdfs/namesup.c @@ -410,8 +410,14 @@ Return Value: Wchar < Add2Ptr( FileName->Buffer, FileName->Length, PWCHAR ); Wchar++) { - if ((*Wchar < 0xff) && - (!FsRtlIsAnsiCharacterLegalHpfs( *Wchar, FALSE ) && (*Wchar != 0xfc)) && + // + // Check whether ASCII characters are legal. + // We will consider the rest of the characters + // (extended ASCII and unicode) as legal. + // + + if ((*Wchar < 0x80) && + !FsRtlIsAnsiCharacterLegalHpfs( *Wchar, FALSE ) && (*Wchar != L'"') && (*Wchar != L'<') && (*Wchar != L'>') &&