Fixed 'Irp->UserBuffer' init for un-PAGE_SIZE-aligned buffers
authorshort <>
Fri, 31 Jan 2003 19:31:00 +0000 (19:31 +0000)
committershort <>
Fri, 31 Jan 2003 19:31:00 +0000 (19:31 +0000)
ntoskrnl/io/buildirp.c

index 19ed485..8e133ed 100644 (file)
@@ -492,7 +492,7 @@ IoBuildSynchronousFsdRequestWithMdl(ULONG MajorFunction,
    /* FIXME: 'Irp->UserBuffer=NULL' was here from reactos but we need some
     * buffer at 'Irp->UserBuffer' for fastfat.sys - what to use else?
     */
-   Irp->UserBuffer = Mdl->StartVa;
+   Irp->UserBuffer = MmGetSystemAddressForMdl(Mdl);
    Irp->AssociatedIrp.SystemBuffer = NULL;
       
    if (MajorFunction == IRP_MJ_READ)