[Wine-devel] [5/6] ntoskrnl.exe: Use IO_TYPE_* defines.

Alexander Morozov =?iso-8859-1?q?amorozov_=CE=C1_etersoft=2Eru?=
Пт Окт 3 20:02:32 MSD 2008


----------- следующая часть -----------
From 6a3f6de945c46b4962d61a1fd30845e419d2f590 Mon Sep 17 00:00:00 2001
From: Alexander Morozov <amorozov на etersoft.ru>
Date: Fri, 3 Oct 2008 13:09:07 +0400
Subject: [PATCH] ntoskrnl.exe: Use IO_TYPE_* defines.

---
 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 5abe424..96d46aa 100644
--- a/dlls/ntoskrnl.exe/ntoskrnl.c
+++ b/dlls/ntoskrnl.exe/ntoskrnl.c
@@ -337,7 +337,7 @@ void WINAPI IoInitializeIrp( IRP *irp, USHORT size, CCHAR stack_size )
 
     RtlZeroMemory( irp, size );
 
-    irp->Type = 6;
+    irp->Type = IO_TYPE_IRP;
     irp->Size = size;
     InitializeListHead( &irp->ThreadListEntry );
     irp->StackCount = stack_size;
@@ -536,7 +536,7 @@ NTSTATUS WINAPI IoCreateDevice( DRIVER_OBJECT *driver, ULONG ext_size,
 
     if (status == STATUS_SUCCESS)
     {
-        device->Type            = 3;
+        device->Type            = IO_TYPE_DEVICE;
         device->Size            = sizeof(*device) + ext_size;
         device->DriverObject    = driver;
         device->Flags           = DO_DEVICE_INITIALIZING;
-- 
1.5.6.5.GIT



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