Author: pschweitzer
Date: Sat Apr 20 14:10:10 2013
New Revision: 58790
URL:
http://svn.reactos.org/svn/reactos?rev=58790&view=rev
Log:
[NTOSKRNL]
Allow null matching with * wc in FsRtlIs*InExpression()
This should fix a few tests
Modified:
trunk/reactos/ntoskrnl/fsrtl/dbcsname.c
trunk/reactos/ntoskrnl/fsrtl/name.c
Modified: trunk/reactos/ntoskrnl/fsrtl/dbcsname.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/ntoskrnl/fsrtl/dbcsname.c?…
==============================================================================
--- trunk/reactos/ntoskrnl/fsrtl/dbcsname.c [iso-8859-1] (original)
+++ trunk/reactos/ntoskrnl/fsrtl/dbcsname.c [iso-8859-1] Sat Apr 20 14:10:10 2013
@@ -207,7 +207,9 @@
NamePosition = Name->Length;
break;
}
- else if (Expression->Buffer[ExpressionPosition] != '?')
+ /* Allow null matching */
+ else if (Expression->Buffer[ExpressionPosition] != '?' &&
+ Expression->Buffer[ExpressionPosition] !=
Name->Buffer[NamePosition])
{
NamePosition++;
}
Modified: trunk/reactos/ntoskrnl/fsrtl/name.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/ntoskrnl/fsrtl/name.c?rev=…
==============================================================================
--- trunk/reactos/ntoskrnl/fsrtl/name.c [iso-8859-1] (original)
+++ trunk/reactos/ntoskrnl/fsrtl/name.c [iso-8859-1] Sat Apr 20 14:10:10 2013
@@ -143,7 +143,9 @@
NamePosition = Name->Length / sizeof(WCHAR);
break;
}
- else if (Expression->Buffer[ExpressionPosition] != L'?')
+ /* Allow null matching */
+ else if (Expression->Buffer[ExpressionPosition] != L'?'
&&
+ Expression->Buffer[ExpressionPosition] !=
Name->Buffer[NamePosition])
{
NamePosition++;
}