[KMTEST:FSRTL]
authorPierre Schweitzer <pierre@reactos.org>
Sat, 20 Apr 2013 12:54:38 +0000 (12:54 +0000)
committerPierre Schweitzer <pierre@reactos.org>
Sat, 20 Apr 2013 12:54:38 +0000 (12:54 +0000)
Fix assertion failure on checked builds

svn path=/trunk/; revision=58789

rostests/kmtests/ntos_fsrtl/FsRtlExpression.c

index b59e6bb..3289619 100644 (file)
@@ -475,8 +475,12 @@ static VOID FsRtlIsDbcsInExpressionTest()
     ok(FsRtlIsDbcsInExpression(&Expression, &Name) == FALSE, "expected FALSE, got TRUE\n");
     RtlInitAnsiString(&Name, " ");
     ok(FsRtlIsDbcsInExpression(&Expression, &Name) == FALSE, "expected FALSE, got TRUE\n");
-    RtlInitAnsiString(&Name, "");
-    ok(FsRtlIsDbcsInExpression(&Expression, &Name) == FALSE, "expected FALSE, got TRUE\n");
+
+    if (!KmtIsCheckedBuild)
+    {
+        RtlInitAnsiString(&Name, "");
+        ok(FsRtlIsDbcsInExpression(&Expression, &Name) == FALSE, "expected FALSE, got TRUE\n");
+    }
     RtlInitAnsiString(&Name, ".");
     ok(FsRtlIsDbcsInExpression(&Expression, &Name) == TRUE, "expected TRUE, got FALSE\n"); 
     RtlInitAnsiString(&Name, "1.txt");