mirror of
https://github.com/reactos/reactos.git
synced 2024-12-28 01:55:19 +00:00
[SCSIPORT] Fix setting the "Driver" field in the DeviceMap\Scsi registry key
This commit is contained in:
parent
d9e20ae3fe
commit
da1f4ed6af
1 changed files with 4 additions and 1 deletions
|
@ -212,13 +212,16 @@ RegistryInitAdapterKey(
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Set 'Driver' (REG_SZ) value */
|
/* Set 'Driver' (REG_SZ) value */
|
||||||
PUNICODE_STRING driverNameU = &DeviceExtension->Common.DeviceObject->DriverObject->DriverName;
|
PUNICODE_STRING driverNameU = &DeviceExtension->Common.DeviceObject->DriverObject
|
||||||
|
->DriverExtension->ServiceKeyName;
|
||||||
|
|
||||||
PWCHAR driverName = ExAllocatePoolWithTag(PagedPool,
|
PWCHAR driverName = ExAllocatePoolWithTag(PagedPool,
|
||||||
driverNameU->Length + sizeof(UNICODE_NULL),
|
driverNameU->Length + sizeof(UNICODE_NULL),
|
||||||
TAG_SCSIPORT);
|
TAG_SCSIPORT);
|
||||||
if (!driverName)
|
if (!driverName)
|
||||||
{
|
{
|
||||||
DPRINT("Failed to allocate driverName!\n");
|
DPRINT("Failed to allocate driverName!\n");
|
||||||
|
ZwClose(ScsiPortKey);
|
||||||
return STATUS_INSUFFICIENT_RESOURCES;
|
return STATUS_INSUFFICIENT_RESOURCES;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue