branch update for HEAD-2003050101
[reactos.git] / ntoskrnl / io / device.c
index 4432332..57fde3f 100644 (file)
@@ -627,7 +627,6 @@ IoCreateDevice(PDRIVER_OBJECT DriverObject,
 {
    PDEVICE_OBJECT CreatedDeviceObject;
    OBJECT_ATTRIBUTES ObjectAttributes;
-   HANDLE DeviceHandle;
    NTSTATUS Status;
    
    assert_irql(PASSIVE_LEVEL);
@@ -661,7 +660,7 @@ IoCreateDevice(PDRIVER_OBJECT DriverObject,
    if (DeviceName != NULL)
      {
        InitializeObjectAttributes(&ObjectAttributes,DeviceName,0,NULL,NULL);
-       Status = ObCreateObject(&DeviceHandle,
+       Status = ObCreateObject(NULL,
                                0,
                                &ObjectAttributes,
                                IoDeviceObjectType,
@@ -669,7 +668,7 @@ IoCreateDevice(PDRIVER_OBJECT DriverObject,
      }
    else
      {
-       Status = ObCreateObject(&DeviceHandle,
+       Status = ObCreateObject(NULL,
                                0,
                                NULL,
                                IoDeviceObjectType,
@@ -744,7 +743,7 @@ IoCreateDevice(PDRIVER_OBJECT DriverObject,
 #ifdef LIBCAPTIVE
   /* Magic value expected by ntfs.sys NT5.1sp1 _NtfsInitializeIrpContext()
    */
-  if (DeviceExtensionSize>=0x30)
+  if (DeviceExtensionSize>=0x2A)
     *(USHORT *)(((UCHAR *)CreatedDeviceObject->DeviceExtension)+0x28)=0x0701;
 #endif /* LIBCAPTIVE */