[0.4.10] [CDFS] state-of-the-art-fix for CORE-14067

Prevents CDFS asserting on more characters, tested for "äöüßÄÖÜ" at least.
Thanks to Pierre Schweitzer for that generalization.

This patch supersedes 0.4.10-RC-14-g
15c578fe0d
This commit is contained in:
Joachim Henze 2018-08-27 22:24:38 +02:00
parent 15c578fe0d
commit 37680ffa9c

View file

@ -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'>') &&