Fcb->Header.FileSize.QuadPart = 1004;
Fcb->Header.ValidDataLength.QuadPart = 1004;
}
+ else if (IoStack->FileObject->FileName.Length >= 2 * sizeof(WCHAR) &&
+ IoStack->FileObject->FileName.Buffer[1] == 'R')
+ {
+ Fcb->Header.AllocationSize.QuadPart = 62;
+ Fcb->Header.FileSize.QuadPart = 62;
+ Fcb->Header.ValidDataLength.QuadPart = 62;
+ }
else
{
Fcb->Header.AllocationSize.QuadPart = 512;
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");
}
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.QuadPart == 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);