Author: pschweitzer
Date: Tue Aug  9 20:52:38 2016
New Revision: 72170

URL: http://svn.reactos.org/svn/reactos?rev=72170&view=rev
Log:
[KMTESTS:CC]
It seems we're page-aligned.

CORE-11003

Modified:
    trunk/rostests/kmtests/ntos_cc/CcCopyRead_drv.c

Modified: trunk/rostests/kmtests/ntos_cc/CcCopyRead_drv.c
URL: 
http://svn.reactos.org/svn/reactos/trunk/rostests/kmtests/ntos_cc/CcCopyRead_drv.c?rev=72170&r1=72169&r2=72170&view=diff
==============================================================================
--- trunk/rostests/kmtests/ntos_cc/CcCopyRead_drv.c     [iso-8859-1] (original)
+++ trunk/rostests/kmtests/ntos_cc/CcCopyRead_drv.c     [iso-8859-1] Tue Aug  9 
20:52:38 2016
@@ -228,8 +228,8 @@
 
         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 @@
         }
         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);


Reply via email to