Author: fireball
Date: Tue May 29 01:34:49 2007
New Revision: 26934
URL:
http://svn.reactos.org/svn/reactos?rev=26934&view=rev
Log:
- Give "RAW" filesystem driver a name which it deserves.
Modified:
trunk/reactos/ntoskrnl/io/iomgr/driver.c
Modified: trunk/reactos/ntoskrnl/io/iomgr/driver.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/ntoskrnl/io/iomgr/driver.c…
==============================================================================
--- trunk/reactos/ntoskrnl/io/iomgr/driver.c (original)
+++ trunk/reactos/ntoskrnl/io/iomgr/driver.c Tue May 29 01:34:49 2007
@@ -832,6 +832,7 @@
PDRIVER_OBJECT DriverObject;
LDR_DATA_TABLE_ENTRY ModuleObject;
NTSTATUS Status;
+ UNICODE_STRING DriverName;
/* Use IopRootDeviceNode for now */
Status = IopCreateDeviceNode(IopRootDeviceNode, NULL, NULL, &DeviceNode);
@@ -841,11 +842,12 @@
ModuleObject.DllBase = NULL;
ModuleObject.SizeOfImage = 0;
ModuleObject.EntryPoint = RawFsDriverEntry;
+ RtlInitUnicodeString(&DriverName, L"RAW");
/* Initialize it */
Status = IopInitializeDriverModule(DeviceNode,
&ModuleObject,
- &DeviceNode->ServiceName,
+ &DriverName,
TRUE,
&DriverObject);
if (!NT_SUCCESS(Status))
@@ -1160,6 +1162,8 @@
(PVOID*)&DriverObject);
if (!NT_SUCCESS(Status)) return Status;
+ DPRINT("IopCreateDriver(): created DO %p\n", DriverObject);
+
/* Set up the Object */
RtlZeroMemory(DriverObject, ObjectSize);
DriverObject->Type = IO_TYPE_DRIVER;