[Wine-patches] [eterhack 6/6] ntoskrnl.exe: Fix completion routine calling.

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


----------- следующая часть -----------
From 90bb04904cb8f371abb0c2cac34baff4e0d9ba81 Mon Sep 17 00:00:00 2001
From: Alexander Morozov <amorozov на etersoft.ru>
Date: Wed, 13 May 2009 17:18:52 +0400
Subject: [eterhack 6/6] ntoskrnl.exe: Fix completion routine calling.

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

diff --git a/dlls/ntoskrnl.exe/ntoskrnl.c b/dlls/ntoskrnl.exe/ntoskrnl.c
index 011d7b7..2f7b34f 100644
--- a/dlls/ntoskrnl.exe/ntoskrnl.c
+++ b/dlls/ntoskrnl.exe/ntoskrnl.c
@@ -1982,8 +1982,8 @@ void WINAPI IoCompleteRequest( IRP *irp, UCHAR priority_boost )
         if (call_flag)
         {
             TRACE( "calling %p( %p, %p, %p )\n", routine,
-                    irpsp->DeviceObject, irp, irpsp->Context );
-            stat = routine( irpsp->DeviceObject, irp, irpsp->Context );
+                    (irpsp + 1)->DeviceObject, irp, irpsp->Context );
+            stat = routine( (irpsp + 1)->DeviceObject, irp, irpsp->Context );
             TRACE( "CompletionRoutine returned %x\n", stat );
             if (STATUS_MORE_PROCESSING_REQUIRED == stat)
                 return;
-- 
1.6.2.5



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