Author: tkreuzer Date: Mon Sep 29 07:34:39 2014 New Revision: 64385
URL: http://svn.reactos.org/svn/reactos?rev=64385&view=rev Log: [NTOSKRNL] Fix a bug I introduced in r64369. CORE-8573
Modified: trunk/reactos/ntoskrnl/fsrtl/name.c
Modified: trunk/reactos/ntoskrnl/fsrtl/name.c URL: http://svn.reactos.org/svn/reactos/trunk/reactos/ntoskrnl/fsrtl/name.c?rev=6... ============================================================================== --- trunk/reactos/ntoskrnl/fsrtl/name.c [iso-8859-1] (original) +++ trunk/reactos/ntoskrnl/fsrtl/name.c [iso-8859-1] Mon Sep 29 07:34:39 2014 @@ -130,13 +130,6 @@ ExpressionPosition++; }
- /* If star is at the end, then eat all rest and leave */ - if (ExpressionPosition == Expression->Length / sizeof(WCHAR)) - { - NamePosition = Name->Length / sizeof(WCHAR); - break; - } - /* Save star position */ StarFound++; if (StarFound >= BackTrackingSize) @@ -149,6 +142,13 @@
} BackTracking[StarFound] = ExpressionPosition++; + + /* If star is at the end, then eat all rest and leave */ + if (ExpressionPosition == Expression->Length / sizeof(WCHAR)) + { + NamePosition = Name->Length / sizeof(WCHAR); + break; + }
/* Allow null matching */ if (Expression->Buffer[ExpressionPosition] != L'?' &&