- Fix a typo (compare a WCHAR with a WCHAR, not CHAR).
authorAleksey Bragin <aleksey@reactos.org>
Mon, 5 Nov 2007 20:12:03 +0000 (20:12 +0000)
committerAleksey Bragin <aleksey@reactos.org>
Mon, 5 Nov 2007 20:12:03 +0000 (20:12 +0000)
svn path=/trunk/; revision=30197

reactos/ntoskrnl/cm/ntfunc.c

index ecf3a8f..632e581 100644 (file)
@@ -275,7 +275,7 @@ NtCreateKey(OUT PHANDLE KeyHandle,
     }
 
     while (RemainingPath.Length && 
-           RemainingPath.Buffer[(RemainingPath.Length / sizeof(WCHAR)) - 1] == '\\')
+           RemainingPath.Buffer[(RemainingPath.Length / sizeof(WCHAR)) - 1] == L'\\')
     {
         RemainingPath.Length -= sizeof(WCHAR);
         RemainingPath.MaximumLength -= sizeof(WCHAR);