mirror of
https://github.com/reactos/reactos.git
synced 2024-07-05 12:15:46 +00:00
[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:
parent
15c578fe0d
commit
37680ffa9c
|
@ -410,8 +410,14 @@ Return Value:
|
||||||
Wchar < Add2Ptr( FileName->Buffer, FileName->Length, PWCHAR );
|
Wchar < Add2Ptr( FileName->Buffer, FileName->Length, PWCHAR );
|
||||||
Wchar++) {
|
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'<') &&
|
(*Wchar != L'<') &&
|
||||||
(*Wchar != L'>') &&
|
(*Wchar != L'>') &&
|
||||||
|
|
Loading…
Reference in a new issue