[Wine-patches] [eterhack] mountmgr.sys: Handling IRP in WINE на Etersoft is different from upstream.

Alexander Morozov amorozov на etersoft.ru
Пн Июл 18 21:09:08 MSD 2011


----------- следующая часть -----------
From 602665c08da926822180a4c4e6c25b34b0e291cc Mon Sep 17 00:00:00 2001
From: Alexander Morozov <amorozov на etersoft.ru>
Date: Mon, 18 Jul 2011 21:05:05 +0400
Subject: [eterhack] mountmgr.sys: Handling IRP in WINE на Etersoft is different
 from upstream.

---
 dlls/mountmgr.sys/device.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/dlls/mountmgr.sys/device.c b/dlls/mountmgr.sys/device.c
index 692fe38..66f02dc 100644
--- a/dlls/mountmgr.sys/device.c
+++ b/dlls/mountmgr.sys/device.c
@@ -1140,9 +1140,9 @@ static NTSTATUS WINAPI harddisk_ioctl( DEVICE_OBJECT *device, IRP *irp )
         info.DiskSize.QuadPart = info.Geometry.Cylinders.QuadPart * info.Geometry.TracksPerCylinder *
                                  info.Geometry.SectorsPerTrack * info.Geometry.BytesPerSector;
         info.Data[0]  = 0;
-        memcpy( irp->MdlAddress->StartVa, &info, len );
+        memcpy( irp->AssociatedIrp.SystemBuffer, &info, len );
         irp->IoStatus.Information = len;
-        irp->IoStatus.u.Status = STATUS_SUCCESS;
+        status = STATUS_SUCCESS;
         break;
     }
     case IOCTL_STORAGE_GET_DEVICE_NUMBER:
-- 
1.7.5.4



Подробная информация о списке рассылки Wine-patches