mirror of
https://github.com/reactos/reactos.git
synced 2024-10-02 15:34:13 +00:00
[NDIS]
- Add missing OBJ_KERNEL_HANDLE CORE-10207 svn path=/trunk/; revision=69522
This commit is contained in:
parent
647edad779
commit
c8e6c59728
|
@ -291,7 +291,7 @@ NdisOpenProtocolConfiguration(
|
|||
|
||||
RtlCopyUnicodeString(&KeyNameU, ProtocolSection);
|
||||
RtlAppendUnicodeToString(&KeyNameU, PARAMETERS_KEY);
|
||||
InitializeObjectAttributes(&KeyAttributes, &KeyNameU, OBJ_CASE_INSENSITIVE, NULL, NULL);
|
||||
InitializeObjectAttributes(&KeyAttributes, &KeyNameU, OBJ_CASE_INSENSITIVE | OBJ_KERNEL_HANDLE, NULL, NULL);
|
||||
|
||||
*Status = ZwOpenKey(&KeyHandle, KEY_ALL_ACCESS, &KeyAttributes);
|
||||
|
||||
|
@ -908,7 +908,7 @@ NdisOpenConfigurationKeyByIndex(
|
|||
wcsncpy(KeyName->Buffer, KeyInformation->Name, KeyName->MaximumLength/sizeof(WCHAR));
|
||||
KeyName->Length = (USHORT)min(KeyInformation->NameLength, KeyName->MaximumLength);
|
||||
|
||||
InitializeObjectAttributes(&KeyAttributes, KeyName, OBJ_CASE_INSENSITIVE, ConfigurationHandle, NULL);
|
||||
InitializeObjectAttributes(&KeyAttributes, KeyName, OBJ_CASE_INSENSITIVE | OBJ_KERNEL_HANDLE, ConfigurationHandle, NULL);
|
||||
|
||||
*Status = ZwOpenKey(&RegKeyHandle, KEY_ALL_ACCESS, &KeyAttributes);
|
||||
|
||||
|
@ -971,7 +971,7 @@ NdisOpenConfigurationKeyByName(
|
|||
|
||||
*KeyHandle = NULL;
|
||||
|
||||
InitializeObjectAttributes(&KeyAttributes, KeyName, OBJ_CASE_INSENSITIVE, ConfigurationHandle, 0);
|
||||
InitializeObjectAttributes(&KeyAttributes, KeyName, OBJ_CASE_INSENSITIVE | OBJ_KERNEL_HANDLE, ConfigurationHandle, 0);
|
||||
*Status = ZwOpenKey(&RegKeyHandle, KEY_ALL_ACCESS, &KeyAttributes);
|
||||
|
||||
if(*Status != STATUS_SUCCESS)
|
||||
|
|
|
@ -933,7 +933,7 @@ ndisBindMiniportsToProtocol(OUT PNDIS_STATUS Status, IN PPROTOCOL_BINDING Protoc
|
|||
RtlInitUnicodeString(&RegistryPath, RegistryPathStr);
|
||||
NDIS_DbgPrint(MAX_TRACE, ("Opening configuration key: %wZ\n", &RegistryPath));
|
||||
|
||||
InitializeObjectAttributes(&ObjectAttributes, &RegistryPath, OBJ_CASE_INSENSITIVE, NULL, NULL);
|
||||
InitializeObjectAttributes(&ObjectAttributes, &RegistryPath, OBJ_CASE_INSENSITIVE | OBJ_KERNEL_HANDLE, NULL, NULL);
|
||||
NtStatus = ZwOpenKey(&DriverKeyHandle, KEY_READ, &ObjectAttributes);
|
||||
|
||||
ExFreePool(RegistryPathStr);
|
||||
|
|
Loading…
Reference in a new issue