Reactos

[NTOS:CONFIG] CmpInitializeMachineDependentConfiguration(): Add missing OBJ_KERNEL_HANDLE (#8445)

+5 -5
+5 -5
ntoskrnl/config/i386/cmhardwr.c
··· 257 257 L"Control\\Session Manager\\Memory Management"); 258 258 InitializeObjectAttributes(&ObjectAttributes, 259 259 &KeyName, 260 - OBJ_CASE_INSENSITIVE, 260 + OBJ_CASE_INSENSITIVE | OBJ_KERNEL_HANDLE, 261 261 NULL, 262 262 NULL); 263 263 Status = NtOpenKey(&KeyHandle, KEY_READ | KEY_WRITE, &ObjectAttributes); ··· 284 284 L"\\Registry\\Machine\\Hardware\\Description\\System"); 285 285 InitializeObjectAttributes(&ObjectAttributes, 286 286 &KeyName, 287 - OBJ_CASE_INSENSITIVE, 287 + OBJ_CASE_INSENSITIVE | OBJ_KERNEL_HANDLE, 288 288 NULL, 289 289 NULL); 290 290 Status = NtOpenKey(&SystemHandle, KEY_READ | KEY_WRITE, &ObjectAttributes); ··· 297 297 L"Control\\BIOSINFO"); 298 298 InitializeObjectAttributes(&ObjectAttributes, 299 299 &KeyName, 300 - OBJ_CASE_INSENSITIVE, 300 + OBJ_CASE_INSENSITIVE | OBJ_KERNEL_HANDLE, 301 301 NULL, 302 302 NULL); 303 303 Status = NtCreateKey(&BiosHandle, ··· 317 317 RtlInitUnicodeString(&KeyName, L"CentralProcessor"); 318 318 InitializeObjectAttributes(&ObjectAttributes, 319 319 &KeyName, 320 - OBJ_CASE_INSENSITIVE, 320 + OBJ_CASE_INSENSITIVE | OBJ_KERNEL_HANDLE, 321 321 SystemHandle, 322 322 NULL); 323 323 Status = NtCreateKey(&KeyHandle, ··· 601 601 RtlInitUnicodeString(&SectionName, L"\\Device\\PhysicalMemory"); 602 602 InitializeObjectAttributes(&ObjectAttributes, 603 603 &SectionName, 604 - OBJ_CASE_INSENSITIVE, 604 + OBJ_CASE_INSENSITIVE | OBJ_KERNEL_HANDLE, 605 605 NULL, 606 606 NULL); 607 607 Status = ZwOpenSection(&SectionHandle,