https://git.reactos.org/?p=reactos.git;a=commitdiff;h=aecc523b6a0df05db9813…
commit aecc523b6a0df05db98135e3aa5f1bc5b6c9d9f9
Author: Eric Kohl <eric.kohl(a)reactos.org>
AuthorDate: Sat Dec 29 17:49:38 2018 +0100
Commit: Eric Kohl <eric.kohl(a)reactos.org>
CommitDate: Sat Dec 29 17:49:38 2018 +0100
[NTOS:IO] Fix indentation. No code changes.
---
ntoskrnl/io/iomgr/deviface.c | 89 ++++++++++++++++++++++----------------------
1 file changed, 45 insertions(+), 44 deletions(-)
diff --git a/ntoskrnl/io/iomgr/deviface.c b/ntoskrnl/io/iomgr/deviface.c
index 7d19776c33..0e1f32f5ca 100644
--- a/ntoskrnl/io/iomgr/deviface.c
+++ b/ntoskrnl/io/iomgr/deviface.c
@@ -189,33 +189,34 @@ OpenRegistryHandlesFromSymbolicLink(IN PUNICODE_STRING
SymbolicLinkName,
cleanup:
if (SubKeyName.Buffer != NULL)
- ExFreePool(SubKeyName.Buffer);
+ ExFreePool(SubKeyName.Buffer);
if (NT_SUCCESS(Status))
{
- if (!GuidKey)
- ZwClose(*GuidKeyRealP);
+ if (!GuidKey)
+ ZwClose(*GuidKeyRealP);
- if (!DeviceKey)
- ZwClose(*DeviceKeyRealP);
+ if (!DeviceKey)
+ ZwClose(*DeviceKeyRealP);
- if (!InstanceKey)
- ZwClose(*InstanceKeyRealP);
+ if (!InstanceKey)
+ ZwClose(*InstanceKeyRealP);
}
else
{
- if (*GuidKeyRealP != NULL)
- ZwClose(*GuidKeyRealP);
+ if (*GuidKeyRealP != NULL)
+ ZwClose(*GuidKeyRealP);
- if (*DeviceKeyRealP != NULL)
- ZwClose(*DeviceKeyRealP);
+ if (*DeviceKeyRealP != NULL)
+ ZwClose(*DeviceKeyRealP);
- if (*InstanceKeyRealP != NULL)
- ZwClose(*InstanceKeyRealP);
+ if (*InstanceKeyRealP != NULL)
+ ZwClose(*InstanceKeyRealP);
}
return Status;
}
+
/*++
* @name IoOpenDeviceInterfaceRegistryKey
* @unimplemented
@@ -246,37 +247,37 @@ IoOpenDeviceInterfaceRegistryKey(IN PUNICODE_STRING
SymbolicLinkName,
IN ACCESS_MASK DesiredAccess,
OUT PHANDLE DeviceInterfaceKey)
{
- HANDLE InstanceKey, DeviceParametersKey;
- NTSTATUS Status;
- OBJECT_ATTRIBUTES ObjectAttributes;
- UNICODE_STRING DeviceParametersU = RTL_CONSTANT_STRING(L"Device
Parameters");
-
- Status = OpenRegistryHandlesFromSymbolicLink(SymbolicLinkName,
- KEY_CREATE_SUB_KEY,
- NULL,
- NULL,
- &InstanceKey);
- if (!NT_SUCCESS(Status))
- return Status;
-
- InitializeObjectAttributes(&ObjectAttributes,
- &DeviceParametersU,
- OBJ_CASE_INSENSITIVE | OBJ_KERNEL_HANDLE | OBJ_OPENIF,
- InstanceKey,
- NULL);
- Status = ZwCreateKey(&DeviceParametersKey,
- DesiredAccess,
- &ObjectAttributes,
- 0,
- NULL,
- REG_OPTION_NON_VOLATILE,
- NULL);
- ZwClose(InstanceKey);
-
- if (NT_SUCCESS(Status))
- *DeviceInterfaceKey = DeviceParametersKey;
-
- return Status;
+ HANDLE InstanceKey, DeviceParametersKey;
+ NTSTATUS Status;
+ OBJECT_ATTRIBUTES ObjectAttributes;
+ UNICODE_STRING DeviceParametersU = RTL_CONSTANT_STRING(L"Device
Parameters");
+
+ Status = OpenRegistryHandlesFromSymbolicLink(SymbolicLinkName,
+ KEY_CREATE_SUB_KEY,
+ NULL,
+ NULL,
+ &InstanceKey);
+ if (!NT_SUCCESS(Status))
+ return Status;
+
+ InitializeObjectAttributes(&ObjectAttributes,
+ &DeviceParametersU,
+ OBJ_CASE_INSENSITIVE | OBJ_KERNEL_HANDLE | OBJ_OPENIF,
+ InstanceKey,
+ NULL);
+ Status = ZwCreateKey(&DeviceParametersKey,
+ DesiredAccess,
+ &ObjectAttributes,
+ 0,
+ NULL,
+ REG_OPTION_NON_VOLATILE,
+ NULL);
+ ZwClose(InstanceKey);
+
+ if (NT_SUCCESS(Status))
+ *DeviceInterfaceKey = DeviceParametersKey;
+
+ return Status;
}
/*++