mirror of
https://github.com/reactos/reactos.git
synced 2025-08-07 03:03:13 +00:00
Limit usage of KEY_ALL_ACCESS when opening registry keys
svn path=/trunk/; revision=42874
This commit is contained in:
parent
413dcab765
commit
9feee2204c
4 changed files with 13 additions and 13 deletions
|
@ -311,7 +311,7 @@ EventThread(IN LPVOID lpParameter)
|
|||
hInf = *(HINF *)lpParameter;
|
||||
|
||||
InitializeObjectAttributes(&ObjectAttributes, &EnumU, OBJ_CASE_INSENSITIVE, NULL, NULL);
|
||||
Status = NtOpenKey(&hEnum, 0, &ObjectAttributes);
|
||||
Status = NtOpenKey(&hEnum, KEY_QUERY_VALUE, &ObjectAttributes);
|
||||
if (!NT_SUCCESS(Status))
|
||||
{
|
||||
DPRINT1("NtOpenKey('%wZ') failed with status 0x%08lx\n", &EnumU, Status);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue