[SCSIPORT]
authorJérôme Gardou <jerome.gardou@reactos.org>
Sun, 24 Aug 2014 19:49:42 +0000 (19:49 +0000)
committerJérôme Gardou <jerome.gardou@reactos.org>
Sun, 24 Aug 2014 19:49:42 +0000 (19:49 +0000)
 - Use kernel handles instead of process handles

svn path=/trunk/; revision=63945

reactos/drivers/storage/scsiport/scsiport.c

index 1671fc7..0db7e81 100644 (file)
@@ -5296,7 +5296,7 @@ SpiBuildDeviceMap (PSCSI_PORT_DEVICE_EXTENSION DeviceExtension,
                          L"\\Registry\\Machine\\Hardware\\DeviceMap\\Scsi");
   InitializeObjectAttributes(&ObjectAttributes,
                             &KeyName,
                          L"\\Registry\\Machine\\Hardware\\DeviceMap\\Scsi");
   InitializeObjectAttributes(&ObjectAttributes,
                             &KeyName,
-                            OBJ_CASE_INSENSITIVE | OBJ_OPENIF,
+                            OBJ_CASE_INSENSITIVE | OBJ_OPENIF | OBJ_KERNEL_HANDLE,
                             0,
                             NULL);
   Status = ZwCreateKey(&ScsiKey,
                             0,
                             NULL);
   Status = ZwCreateKey(&ScsiKey,
@@ -5323,7 +5323,7 @@ SpiBuildDeviceMap (PSCSI_PORT_DEVICE_EXTENSION DeviceExtension,
                       NameBuffer);
   InitializeObjectAttributes(&ObjectAttributes,
                             &KeyName,
                       NameBuffer);
   InitializeObjectAttributes(&ObjectAttributes,
                             &KeyName,
-                            0,
+                            OBJ_KERNEL_HANDLE,
                             ScsiKey,
                             NULL);
   Status = ZwCreateKey(&ScsiPortKey,
                             ScsiKey,
                             NULL);
   Status = ZwCreateKey(&ScsiPortKey,