Author: hbelusca Date: Thu Jun 30 20:34:10 2016 New Revision: 71708
URL: http://svn.reactos.org/svn/reactos?rev=71708&view=rev Log: [KERNEL32]: Don't hardcode flag values for NtOpenKey.
Modified: trunk/reactos/dll/win32/kernel32/client/appcache.c
Modified: trunk/reactos/dll/win32/kernel32/client/appcache.c URL: http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/kernel32/client/a... ============================================================================== --- trunk/reactos/dll/win32/kernel32/client/appcache.c [iso-8859-1] (original) +++ trunk/reactos/dll/win32/kernel32/client/appcache.c [iso-8859-1] Thu Jun 30 20:34:10 2016 @@ -44,7 +44,7 @@ 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 @@ 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 @@ 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 */