+ntoskrnl/rtl/dos8dot3.c
authorshort <>
Sat, 23 Nov 2002 02:06:05 +0000 (02:06 +0000)
committershort <>
Sat, 23 Nov 2002 02:06:05 +0000 (02:06 +0000)
 - +RtlGenerate8dot3Name()

ntoskrnl/rtl/dos8dot3.c

index ffe8261..666e3ee 100644 (file)
 
 /* CONSTANTS *****************************************************************/
 
-const PWCHAR RtlpShortIllegals = L" ;+=[]',\"*\\<>/?:|";
+static const WCHAR *RtlpShortIllegals;
 
 
 /* FUNCTIONS *****************************************************************/
 
+
 static BOOLEAN
 RtlpIsShortIllegal(WCHAR Char)
 {
   int i;
 
+  if (!RtlpShortIllegals)
+    RtlpShortIllegals = REACTOS_UCS2(L" ;+=[]',\"*\\<>/?:|");
+
   for (i = 0; RtlpShortIllegals[i]; i++)
     {
       if (Char == RtlpShortIllegals[i])
@@ -174,6 +178,7 @@ RtlGenerate8dot3Name(IN PUNICODE_STRING Name,
   Context->LastIndexValue = CurrentIndex;
 }
 
+#ifndef LIBCAPTIVE
 
 BOOLEAN STDCALL
 RtlIsNameLegalDOS8Dot3(IN PUNICODE_STRING UnicodeName,
@@ -250,4 +255,6 @@ RtlIsNameLegalDOS8Dot3(IN PUNICODE_STRING UnicodeName,
   return(TRUE);
 }
 
+#endif /* LIBCAPTIVE */
+
 /* EOF */