mirror of
https://github.com/reactos/reactos.git
synced 2025-01-05 22:12:46 +00:00
[NTOSKRNL]
In IoReportDetectedDevice(), don't attempt to guess service name, use the one provided in DriverObject. This fixes BtrFS file system driver initialization. Patch by Thomas Faber. CORE-13763 svn path=/trunk/; revision=75782
This commit is contained in:
parent
969293ce10
commit
cb8ab26d8b
1 changed files with 1 additions and 6 deletions
|
@ -181,12 +181,7 @@ IoReportDetectedDevice(IN PDRIVER_OBJECT DriverObject,
|
|||
DPRINT("IoReportDetectedDevice (DeviceObject %p, *DeviceObject %p)\n",
|
||||
DeviceObject, DeviceObject ? *DeviceObject : NULL);
|
||||
|
||||
/* Create the service name (eg. ACPI_HAL) */
|
||||
ServiceName.Buffer = DriverObject->DriverName.Buffer +
|
||||
sizeof(DRIVER_ROOT_NAME) / sizeof(WCHAR) - 1;
|
||||
ServiceName.Length = DriverObject->DriverName.Length -
|
||||
sizeof(DRIVER_ROOT_NAME) + sizeof(WCHAR);
|
||||
ServiceName.MaximumLength = ServiceName.Length;
|
||||
ServiceName = DriverObject->DriverExtension->ServiceKeyName;
|
||||
|
||||
/* If the interface type is unknown, treat it as internal */
|
||||
if (LegacyBusType == InterfaceTypeUndefined)
|
||||
|
|
Loading…
Reference in a new issue