[KMTESTS:CC] Properly check for memory allocations
authorPierre Schweitzer <pierre@reactos.org>
Sat, 13 Oct 2018 17:17:00 +0000 (19:17 +0200)
committerPierre Schweitzer <pierre@reactos.org>
Sat, 13 Oct 2018 17:17:00 +0000 (19:17 +0200)
modules/rostests/kmtests/ntos_cc/CcMapData_drv.c
modules/rostests/kmtests/ntos_cc/CcPinRead_drv.c

index 16de38c..5f7dc93 100644 (file)
@@ -287,7 +287,7 @@ PerformTest(
                     PTEST_CONTEXT TestContext;
 
                     TestContext = ExAllocatePool(NonPagedPool, sizeof(TEST_CONTEXT));
-                    if (!skip(Fcb != NULL, "ExAllocatePool failed\n"))
+                    if (!skip(TestContext != NULL, "ExAllocatePool failed\n"))
                     {
                         Ret = FALSE;
                         Offset.QuadPart = 0x1000;
index 26ae0ed..369d105 100644 (file)
@@ -404,7 +404,7 @@ PerformTest(
                     PTEST_CONTEXT TestContext;
 
                     TestContext = ExAllocatePool(NonPagedPool, sizeof(TEST_CONTEXT));
-                    if (!skip(Fcb != NULL, "ExAllocatePool failed\n"))
+                    if (!skip(TestContext != NULL, "ExAllocatePool failed\n"))
                     {
                         Ret = FALSE;
                         Offset.QuadPart = 0x1000;