mirror of
https://github.com/reactos/reactos.git
synced 2025-05-17 16:27:00 +00:00
[KERNEL32]: Don't hardcode flag values for NtOpenKey.
svn path=/trunk/; revision=71708
This commit is contained in:
parent
74a8923afe
commit
e82d66cfa5
1 changed files with 3 additions and 3 deletions
|
@ -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 */
|
||||
|
|
Loading…
Reference in a new issue