https://git.reactos.org/?p=reactos.git;a=commitdiff;h=c467169708160efd4f6df845b1f72431f3488509

commit c467169708160efd4f6df845b1f72431f3488509
Author:     Pierre Schweitzer <[email protected]>
AuthorDate: Sat Oct 13 19:17:00 2018 +0200
Commit:     Pierre Schweitzer <[email protected]>
CommitDate: Sat Oct 13 19:17:00 2018 +0200

    [KMTESTS:CC] Properly check for memory allocations
---
 modules/rostests/kmtests/ntos_cc/CcMapData_drv.c | 2 +-
 modules/rostests/kmtests/ntos_cc/CcPinRead_drv.c | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/modules/rostests/kmtests/ntos_cc/CcMapData_drv.c 
b/modules/rostests/kmtests/ntos_cc/CcMapData_drv.c
index 16de38cfbf..5f7dc93469 100644
--- a/modules/rostests/kmtests/ntos_cc/CcMapData_drv.c
+++ b/modules/rostests/kmtests/ntos_cc/CcMapData_drv.c
@@ -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;
diff --git a/modules/rostests/kmtests/ntos_cc/CcPinRead_drv.c 
b/modules/rostests/kmtests/ntos_cc/CcPinRead_drv.c
index 26ae0edf8c..369d105742 100644
--- a/modules/rostests/kmtests/ntos_cc/CcPinRead_drv.c
+++ b/modules/rostests/kmtests/ntos_cc/CcPinRead_drv.c
@@ -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;

Reply via email to