[Wine-patches] [7/23] ntoskrnl.exe: Comment out some code which can work incorrectly.
Alexander Morozov
=?iso-8859-1?q?amorozov_=CE=C1_etersoft=2Eru?=
Пн Янв 19 18:23:32 MSK 2009
For eterhack branch
----------- следующая часть -----------
From f3aee3233d23f4b2b641d4187319c124fb0455fb Mon Sep 17 00:00:00 2001
From: Alexander Morozov <amorozov на etersoft.ru>
Date: Mon, 12 Jan 2009 11:09:05 +0300
Subject: [PATCH] ntoskrnl.exe: Comment out some code which can work incorrectly.
---
dlls/ntoskrnl.exe/ntoskrnl.c | 12 ++++++++++++
1 files changed, 12 insertions(+), 0 deletions(-)
diff --git a/dlls/ntoskrnl.exe/ntoskrnl.c b/dlls/ntoskrnl.exe/ntoskrnl.c
index ee75766..94bb508 100644
--- a/dlls/ntoskrnl.exe/ntoskrnl.c
+++ b/dlls/ntoskrnl.exe/ntoskrnl.c
@@ -86,6 +86,7 @@ struct IrpInstance
IRP *irp;
};
+#if 0
static struct list MemoryList = LIST_INIT(MemoryList);
struct MemoryRegion
@@ -94,6 +95,7 @@ struct MemoryRegion
void *ptr;
int release;
};
+#endif
static struct list DriverObjExtensions = LIST_INIT(DriverObjExtensions);
@@ -123,10 +125,12 @@ struct InterfaceInstance
UNICODE_STRING *target;
};
+#if 0
#ifdef __i386__
#define mem_mask 0xffff
#define mem_size 0x10000
#endif
+#endif
static DWORD pid; /* ID of the process which calls IOCTL */
@@ -201,6 +205,7 @@ static LONG CALLBACK vectored_handler( EXCEPTION_POINTERS *ptrs )
return EXCEPTION_CONTINUE_SEARCH;
}
+#if 0
#ifdef __i386__
static int map_memory( void *addr )
{
@@ -268,6 +273,7 @@ static LONG WINAPI memory_handler( EXCEPTION_POINTERS* except )
return EXCEPTION_CONTINUE_SEARCH;
}
#endif /* __i386__ */
+#endif
NTSTATUS WINAPI __regs_IofCallDriver( DEVICE_OBJECT *device, IRP *irp );
@@ -280,9 +286,11 @@ static NTSTATUS process_ioctl( DEVICE_OBJECT *device, ULONG code, void *in_buff,
NTSTATUS status;
LARGE_INTEGER count;
IO_STATUS_BLOCK iosb;
+#if 0
#ifdef __i386__
PVOID mem_handler;
#endif
+#endif
TRACE( "ioctl %x device %p in_size %u out_size %u\n", code, device, in_size, *out_size );
@@ -295,15 +303,19 @@ static NTSTATUS process_ioctl( DEVICE_OBJECT *device, ULONG code, void *in_buff,
irp->IoStatus.u.Status = STATUS_NOT_SUPPORTED;
irpsp->DeviceObject = device;
device->CurrentIrp = irp;
+#if 0
#ifdef __i386__
mem_handler = RtlAddVectoredExceptionHandler( FALSE, memory_handler );
#endif
+#endif
KeQueryTickCount( &count ); /* update the global KeTickCount */
status = __regs_IofCallDriver( device, irp );
+#if 0
#ifdef __i386__
RtlRemoveVectoredExceptionHandler( mem_handler );
unmap_memory();
#endif
+#endif
*out_size = (status == STATUS_SUCCESS) ? iosb.Information : 0;
return status;
}
--
1.6.0.2.GIT
Подробная информация о списке рассылки Wine-patches