- Fix a typo, thanks Herve!
authorAleksey Bragin <aleksey@reactos.org>
Sun, 6 Mar 2011 11:16:22 +0000 (11:16 +0000)
committerAleksey Bragin <aleksey@reactos.org>
Sun, 6 Mar 2011 11:16:22 +0000 (11:16 +0000)
svn path=/trunk/; revision=50982

reactos/ntoskrnl/fsrtl/name.c

index 84fba9b..268ea1a 100644 (file)
@@ -38,7 +38,7 @@ FsRtlIsNameInExpressionPrivate(IN PUNICODE_STRING Expression,
     }
 
     /* Check for a shortcut: just one wildcard */
-    if (Expression->Length == 2)
+    if (Expression->Length == sizeof(WCHAR))
     {
         if (Expression->Buffer[0] == L'*')
             return TRUE;