The appropriate fix was the previous one, where the macro
for checking legal chars have been fixed.
Thanks to MS for their review :-).
CORE-14067
Wchar < Add2Ptr( FileName->Buffer, FileName->Length, PWCHAR );
Wchar++) {
-#ifndef __REACTOS__
if ((*Wchar < 0xff) &&
-#else
- //
- // Check whether ASCII characters are legal.
- // We will consider the rest of the characters
- // (extended ASCII and unicode) as legal.
- //
-
- if ((*Wchar < 0x80) &&
-#endif
!FsRtlIsAnsiCharacterLegalHpfs( *Wchar, FALSE ) &&
(*Wchar != L'"') &&
(*Wchar != L'<') &&