[Wine-patches] [eterhack 5/6] ntoskrnl.exe: Initialize DeviceObject field of IO_STACK_LOCATION in IoCallDriver.

Alexander Morozov =?iso-8859-1?q?amorozov_=CE=C1_etersoft=2Eru?=
Ср Май 20 13:02:10 MSD 2009


----------- следующая часть -----------
From 38f62e1ff2ae2cc7548d478ff79500c46e126397 Mon Sep 17 00:00:00 2001
From: Alexander Morozov <amorozov на etersoft.ru>
Date: Wed, 13 May 2009 17:16:01 +0400
Subject: [eterhack 5/6] ntoskrnl.exe: Initialize DeviceObject field of IO_STACK_LOCATION in IoCallDriver.

---
 dlls/ntoskrnl.exe/ntoskrnl.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/dlls/ntoskrnl.exe/ntoskrnl.c b/dlls/ntoskrnl.exe/ntoskrnl.c
index 3c48459..011d7b7 100644
--- a/dlls/ntoskrnl.exe/ntoskrnl.c
+++ b/dlls/ntoskrnl.exe/ntoskrnl.c
@@ -471,7 +471,6 @@ static NTSTATUS process_ioctl( DEVICE_OBJECT *device, ULONG code, void *in_buff,
     irp->RequestorMode = UserMode;
     irp->IoStatus.u.Status = STATUS_NOT_SUPPORTED;
     irp->Tail.Overlay.OriginalFileObject = file;
-    irpsp->DeviceObject = device;
     device->CurrentIrp = irp;
     file->Type = IO_TYPE_FILE;
     file->Size = sizeof(*file);
@@ -1812,6 +1811,7 @@ NTSTATUS WINAPI IoCallDriver( DEVICE_OBJECT *device, IRP *irp )
 
     --irp->CurrentLocation;
     irpsp = --irp->Tail.Overlay.s.u.CurrentStackLocation;
+    irpsp->DeviceObject = device;
     dispatch = device->DriverObject->MajorFunction[irpsp->MajorFunction];
 
     if (TRACE_ON(relay))
-- 
1.6.2.5



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