[CDFS] Properly check for legal names in CdIsLegalName()
[reactos.git] / drivers / filesystems / cdfs / namesup.c
index 96e3aa3..6f375f5 100644 (file)
@@ -410,7 +410,17 @@ Return Value:
          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'<') &&