From b7586c04782b3ea1f16269ee4457ecb8e9898f60 Mon Sep 17 00:00:00 2001 From: Pierre Schweitzer Date: Tue, 9 Aug 2016 20:52:38 +0000 Subject: [PATCH] [KMTESTS:CC] It seems we're page-aligned. CORE-11003 svn path=/trunk/; revision=72170 --- rostests/kmtests/ntos_cc/CcCopyRead_drv.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/rostests/kmtests/ntos_cc/CcCopyRead_drv.c b/rostests/kmtests/ntos_cc/CcCopyRead_drv.c index 7b4b611f104..a94dfbf9991 100644 --- a/rostests/kmtests/ntos_cc/CcCopyRead_drv.c +++ b/rostests/kmtests/ntos_cc/CcCopyRead_drv.c @@ -228,8 +228,8 @@ TestIrpHandler( if (!FlagOn(Irp->Flags, IRP_NOCACHE)) { - ok(Offset.QuadPart % 512 != 0, "Offset is aligned: %I64i\n", Offset.QuadPart); - ok(Length % 512 != 0, "Length is aligned: %I64i\n", Length); + ok(Offset.QuadPart % PAGE_SIZE != 0, "Offset is aligned: %I64i\n", Offset.QuadPart); + ok(Length % PAGE_SIZE != 0, "Length is aligned: %I64i\n", Length); Buffer = Irp->AssociatedIrp.SystemBuffer; ok(Buffer != NULL, "Null pointer!\n"); @@ -262,8 +262,8 @@ TestIrpHandler( } else { - ok(Offset.QuadPart % 512 == 0, "Offset is not aligned: %I64i\n", Offset.QuadPart); - ok(Length % 512 == 0, "Length is not aligned: %I64i\n", Length); + ok(Offset.QuadPart % PAGE_SIZE == 0, "Offset is not aligned: %I64i\n", Offset.QuadPart); + ok(Length % PAGE_SIZE == 0, "Length is not aligned: %I64i\n", Length); ok(Irp->AssociatedIrp.SystemBuffer == NULL, "A SystemBuffer was allocated!\n"); Buffer = MapAndLockUserBuffer(Irp, Length);