Author: pschweitzer
Date: Wed Apr 24 12:18:28 2013
New Revision: 58840
URL:
http://svn.reactos.org/svn/reactos?rev=58840&view=rev
Log:
[NTOSKRNL]
Fix null matching for empty string in FsRtlIsDbcsInExpression()
Modified:
trunk/reactos/ntoskrnl/fsrtl/dbcsname.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] Wed Apr 24 12:18:28 2013
@@ -169,6 +169,11 @@
ASSERT(Name->Length);
ASSERT(Expression->Length);
ASSERT(!FsRtlDoesDbcsContainWildCards(Name));
+
+ if (Name->Length == 0)
+ {
+ return (Expression->Length == 0);
+ }
while (NamePosition < Name->Length && ExpressionPosition <
Expression->Length)
{