update for HEAD-2003050101
[reactos.git] / ntoskrnl / io / device.c
index a2ebf77..494011c 100644 (file)
@@ -610,7 +610,6 @@ IoCreateDevice(PDRIVER_OBJECT DriverObject,
 {
    PDEVICE_OBJECT CreatedDeviceObject;
    OBJECT_ATTRIBUTES ObjectAttributes;
-   HANDLE DeviceHandle;
    NTSTATUS Status;
    
    assert_irql(PASSIVE_LEVEL);
@@ -628,7 +627,7 @@ IoCreateDevice(PDRIVER_OBJECT DriverObject,
    if (DeviceName != NULL)
      {
        InitializeObjectAttributes(&ObjectAttributes,DeviceName,0,NULL,NULL);
-       Status = ObCreateObject(&DeviceHandle,
+       Status = ObCreateObject(NULL,
                                0,
                                &ObjectAttributes,
                                IoDeviceObjectType,
@@ -636,7 +635,7 @@ IoCreateDevice(PDRIVER_OBJECT DriverObject,
      }
    else
      {
-       Status = ObCreateObject(&DeviceHandle,
+       Status = ObCreateObject(NULL,
                                0,
                                NULL,
                                IoDeviceObjectType,