From e82d66cfa5c520a75a1cce95c9a5ba9fef10d5ca Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Herm=C3=A8s=20B=C3=A9lusca-Ma=C3=AFto?= Date: Thu, 30 Jun 2016 20:34:10 +0000 Subject: [PATCH] [KERNEL32]: Don't hardcode flag values for NtOpenKey. svn path=/trunk/; revision=71708 --- reactos/dll/win32/kernel32/client/appcache.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/reactos/dll/win32/kernel32/client/appcache.c b/reactos/dll/win32/kernel32/client/appcache.c index 97e8cf42362..f5c9e9e42cf 100644 --- a/reactos/dll/win32/kernel32/client/appcache.c +++ b/reactos/dll/win32/kernel32/client/appcache.c @@ -44,7 +44,7 @@ IsShimInfrastructureDisabled(VOID) if (g_ShimsEnabled == -1) { /* Open the safe mode key */ - Status = NtOpenKey(&KeyHandle, 1, &OptionKeyAttributes); + Status = NtOpenKey(&KeyHandle, KEY_QUERY_VALUE, &OptionKeyAttributes); if (NT_SUCCESS(Status)) { /* Check if this is safemode */ @@ -66,7 +66,7 @@ IsShimInfrastructureDisabled(VOID) else { /* Open the app compatibility engine settings key */ - Status = NtOpenKey(&KeyHandle, 1, &AppCompatKeyAttributes); + Status = NtOpenKey(&KeyHandle, KEY_QUERY_VALUE, &AppCompatKeyAttributes); if (NT_SUCCESS(Status)) { /* Check if the app compat engine is turned off */ @@ -88,7 +88,7 @@ IsShimInfrastructureDisabled(VOID) else { /* Finally, open the app compatibility policy key */ - Status = NtOpenKey(&KeyHandle, 1, &PolicyKeyAttributes); + Status = NtOpenKey(&KeyHandle, KEY_QUERY_VALUE, &PolicyKeyAttributes); if (NT_SUCCESS(Status)) { /* Check if the system policy disables app compat */