https://git.reactos.org/?p=reactos.git;a=commitdiff;h=fa103197ad05ea0fc89a6a...
commit fa103197ad05ea0fc89a6a6a3bd161c68e1c7ea1 Author: Hermès Bélusca-Maïto hermes.belusca-maito@reactos.org AuthorDate: Tue Apr 3 02:17:52 2018 +0200 Commit: Hermès Bélusca-Maïto hermes.belusca-maito@reactos.org CommitDate: Sun Apr 22 16:52:40 2018 +0200
[NTOSKRNL] Whitespace fixes only. --- ntoskrnl/io/pnpmgr/pnpreport.c | 66 +++++++++++++++++++++--------------------- 1 file changed, 33 insertions(+), 33 deletions(-)
diff --git a/ntoskrnl/io/pnpmgr/pnpreport.c b/ntoskrnl/io/pnpmgr/pnpreport.c index 92523207c5..0d6943b927 100644 --- a/ntoskrnl/io/pnpmgr/pnpreport.c +++ b/ntoskrnl/io/pnpmgr/pnpreport.c @@ -179,7 +179,7 @@ IoReportDetectedDevice(IN PDRIVER_OBJECT DriverObject, ULONG IdLength;
DPRINT("IoReportDetectedDevice (DeviceObject %p, *DeviceObject %p)\n", - DeviceObject, DeviceObject ? *DeviceObject : NULL); + DeviceObject, DeviceObject ? *DeviceObject : NULL);
ServiceName = DriverObject->DriverExtension->ServiceKeyName;
@@ -274,33 +274,33 @@ IoReportDetectedDevice(IN PDRIVER_OBJECT DriverObject, Status = ZwSetValueKey(InstanceKey, &ValueName, 0, REG_MULTI_SZ, HardwareId, IdLength * sizeof(WCHAR)); if (!NT_SUCCESS(Status)) { - DPRINT("Failed to write the compatible IDs: 0x%x\n", Status); - ZwClose(InstanceKey); - return Status; + DPRINT("Failed to write the compatible IDs: 0x%x\n", Status); + ZwClose(InstanceKey); + return Status; }
/* Add a hardware ID if the driver didn't report one */ RtlInitUnicodeString(&ValueName, L"HardwareID"); if (ZwQueryValueKey(InstanceKey, &ValueName, KeyValueBasicInformation, NULL, 0, &RequiredLength) == STATUS_OBJECT_NAME_NOT_FOUND) { - /* Just use our most specific compatible ID */ - IdLength = 0; - IdLength += swprintf(&HardwareId[IdLength], - L"DETECTED%ls\%wZ", - IfString, - &ServiceName); - IdLength++; - - HardwareId[IdLength++] = UNICODE_NULL; - - /* Write the value to the registry */ - Status = ZwSetValueKey(InstanceKey, &ValueName, 0, REG_MULTI_SZ, HardwareId, IdLength * sizeof(WCHAR)); - if (!NT_SUCCESS(Status)) - { - DPRINT("Failed to write the hardware ID: 0x%x\n", Status); - ZwClose(InstanceKey); - return Status; - } + /* Just use our most specific compatible ID */ + IdLength = 0; + IdLength += swprintf(&HardwareId[IdLength], + L"DETECTED%ls\%wZ", + IfString, + &ServiceName); + IdLength++; + + HardwareId[IdLength++] = UNICODE_NULL; + + /* Write the value to the registry */ + Status = ZwSetValueKey(InstanceKey, &ValueName, 0, REG_MULTI_SZ, HardwareId, IdLength * sizeof(WCHAR)); + if (!NT_SUCCESS(Status)) + { + DPRINT("Failed to write the hardware ID: 0x%x\n", Status); + ZwClose(InstanceKey); + return Status; + } }
/* Assign the resources to the device node */ @@ -309,10 +309,10 @@ IoReportDetectedDevice(IN PDRIVER_OBJECT DriverObject,
/* Set appropriate flags */ if (DeviceNode->BootResources) - IopDeviceNodeSetFlag(DeviceNode, DNF_HAS_BOOT_CONFIG); + IopDeviceNodeSetFlag(DeviceNode, DNF_HAS_BOOT_CONFIG);
if (!DeviceNode->ResourceRequirements && !DeviceNode->BootResources) - IopDeviceNodeSetFlag(DeviceNode, DNF_NO_RESOURCE_REQUIRED); + IopDeviceNodeSetFlag(DeviceNode, DNF_NO_RESOURCE_REQUIRED);
/* Write the resource information to the registry */ IopSetDeviceInstanceData(InstanceKey, DeviceNode); @@ -320,15 +320,15 @@ IoReportDetectedDevice(IN PDRIVER_OBJECT DriverObject, /* If the caller didn't get the resources assigned for us, do it now */ if (!ResourceAssigned) { - Status = IopAssignDeviceResources(DeviceNode); - - /* See if we failed */ - if (!NT_SUCCESS(Status)) - { - DPRINT("Assigning resources failed: 0x%x\n", Status); - ZwClose(InstanceKey); - return Status; - } + Status = IopAssignDeviceResources(DeviceNode); + + /* See if we failed */ + if (!NT_SUCCESS(Status)) + { + DPRINT("Assigning resources failed: 0x%x\n", Status); + ZwClose(InstanceKey); + return Status; + } }
/* Close the instance key handle */