mirror of
https://github.com/reactos/reactos.git
synced 2025-04-30 02:58:48 +00:00
[NTOS:IO] Fix indentation. No code changes.
This commit is contained in:
parent
c5f89b8159
commit
aecc523b6a
1 changed files with 41 additions and 40 deletions
|
@ -189,33 +189,34 @@ OpenRegistryHandlesFromSymbolicLink(IN PUNICODE_STRING SymbolicLinkName,
|
||||||
|
|
||||||
cleanup:
|
cleanup:
|
||||||
if (SubKeyName.Buffer != NULL)
|
if (SubKeyName.Buffer != NULL)
|
||||||
ExFreePool(SubKeyName.Buffer);
|
ExFreePool(SubKeyName.Buffer);
|
||||||
|
|
||||||
if (NT_SUCCESS(Status))
|
if (NT_SUCCESS(Status))
|
||||||
{
|
{
|
||||||
if (!GuidKey)
|
if (!GuidKey)
|
||||||
ZwClose(*GuidKeyRealP);
|
ZwClose(*GuidKeyRealP);
|
||||||
|
|
||||||
if (!DeviceKey)
|
if (!DeviceKey)
|
||||||
ZwClose(*DeviceKeyRealP);
|
ZwClose(*DeviceKeyRealP);
|
||||||
|
|
||||||
if (!InstanceKey)
|
if (!InstanceKey)
|
||||||
ZwClose(*InstanceKeyRealP);
|
ZwClose(*InstanceKeyRealP);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
if (*GuidKeyRealP != NULL)
|
if (*GuidKeyRealP != NULL)
|
||||||
ZwClose(*GuidKeyRealP);
|
ZwClose(*GuidKeyRealP);
|
||||||
|
|
||||||
if (*DeviceKeyRealP != NULL)
|
if (*DeviceKeyRealP != NULL)
|
||||||
ZwClose(*DeviceKeyRealP);
|
ZwClose(*DeviceKeyRealP);
|
||||||
|
|
||||||
if (*InstanceKeyRealP != NULL)
|
if (*InstanceKeyRealP != NULL)
|
||||||
ZwClose(*InstanceKeyRealP);
|
ZwClose(*InstanceKeyRealP);
|
||||||
}
|
}
|
||||||
|
|
||||||
return Status;
|
return Status;
|
||||||
}
|
}
|
||||||
|
|
||||||
/*++
|
/*++
|
||||||
* @name IoOpenDeviceInterfaceRegistryKey
|
* @name IoOpenDeviceInterfaceRegistryKey
|
||||||
* @unimplemented
|
* @unimplemented
|
||||||
|
@ -246,37 +247,37 @@ IoOpenDeviceInterfaceRegistryKey(IN PUNICODE_STRING SymbolicLinkName,
|
||||||
IN ACCESS_MASK DesiredAccess,
|
IN ACCESS_MASK DesiredAccess,
|
||||||
OUT PHANDLE DeviceInterfaceKey)
|
OUT PHANDLE DeviceInterfaceKey)
|
||||||
{
|
{
|
||||||
HANDLE InstanceKey, DeviceParametersKey;
|
HANDLE InstanceKey, DeviceParametersKey;
|
||||||
NTSTATUS Status;
|
NTSTATUS Status;
|
||||||
OBJECT_ATTRIBUTES ObjectAttributes;
|
OBJECT_ATTRIBUTES ObjectAttributes;
|
||||||
UNICODE_STRING DeviceParametersU = RTL_CONSTANT_STRING(L"Device Parameters");
|
UNICODE_STRING DeviceParametersU = RTL_CONSTANT_STRING(L"Device Parameters");
|
||||||
|
|
||||||
Status = OpenRegistryHandlesFromSymbolicLink(SymbolicLinkName,
|
Status = OpenRegistryHandlesFromSymbolicLink(SymbolicLinkName,
|
||||||
KEY_CREATE_SUB_KEY,
|
KEY_CREATE_SUB_KEY,
|
||||||
NULL,
|
NULL,
|
||||||
NULL,
|
NULL,
|
||||||
&InstanceKey);
|
&InstanceKey);
|
||||||
if (!NT_SUCCESS(Status))
|
if (!NT_SUCCESS(Status))
|
||||||
return Status;
|
return Status;
|
||||||
|
|
||||||
InitializeObjectAttributes(&ObjectAttributes,
|
InitializeObjectAttributes(&ObjectAttributes,
|
||||||
&DeviceParametersU,
|
&DeviceParametersU,
|
||||||
OBJ_CASE_INSENSITIVE | OBJ_KERNEL_HANDLE | OBJ_OPENIF,
|
OBJ_CASE_INSENSITIVE | OBJ_KERNEL_HANDLE | OBJ_OPENIF,
|
||||||
InstanceKey,
|
InstanceKey,
|
||||||
NULL);
|
NULL);
|
||||||
Status = ZwCreateKey(&DeviceParametersKey,
|
Status = ZwCreateKey(&DeviceParametersKey,
|
||||||
DesiredAccess,
|
DesiredAccess,
|
||||||
&ObjectAttributes,
|
&ObjectAttributes,
|
||||||
0,
|
0,
|
||||||
NULL,
|
NULL,
|
||||||
REG_OPTION_NON_VOLATILE,
|
REG_OPTION_NON_VOLATILE,
|
||||||
NULL);
|
NULL);
|
||||||
ZwClose(InstanceKey);
|
ZwClose(InstanceKey);
|
||||||
|
|
||||||
if (NT_SUCCESS(Status))
|
if (NT_SUCCESS(Status))
|
||||||
*DeviceInterfaceKey = DeviceParametersKey;
|
*DeviceInterfaceKey = DeviceParametersKey;
|
||||||
|
|
||||||
return Status;
|
return Status;
|
||||||
}
|
}
|
||||||
|
|
||||||
/*++
|
/*++
|
||||||
|
|
Loading…
Reference in a new issue