/* See comment at ntoskrnl/io/buildirp.c/IoBuildSynchronousFsdRequestWithMdl()
* initialization of 'Irp->UserBuffer'.
*/
- g_assert(buffer==Irp->MdlAddress->StartVa || buffer==NULL);
+ g_assert(buffer==MmGetSystemAddressForMdl(Irp->MdlAddress) || buffer==NULL);
g_assert(Parameters->Length<=MmGetMdlByteCount(Irp->MdlAddress));
buffer=MmGetSystemAddressForMdl(Irp->MdlAddress);
}
g_assert(buffer!=NULL);
+ g_log(G_LOG_DOMAIN,G_LOG_LEVEL_DEBUG,"%s: %s: ByteOffset=0x%llX,Length=0x%lX",
+ G_STRLOC,(IrpStack->MajorFunction==IRP_MJ_READ ? "IRP_MJ_READ" : "IRP_MJ_WRITE"),
+ (guint64)Parameters->ByteOffset.QuadPart,(gulong)Parameters->Length);
+
erriostatus=g_io_channel_seek_position(captive_image_iochannel,
Parameters->ByteOffset.QuadPart, /* offset */
G_SEEK_SET, /* type */