+ PWCHAR Ptr;
+
+ if (Name->Length == 0)
+ return FALSE;
+
+ /* Set pointer to last character of the string */
+ Ptr = (PWCHAR)((ULONG_PTR)Name->Buffer + Name->Length - sizeof(WCHAR));
+
+ while (Ptr > Name->Buffer)
+ {
+ /* Stop at backslash */
+ if (*Ptr == L'\\')