svn path=/trunk/; revision=71708
if (g_ShimsEnabled == -1)
{
/* Open the safe mode key */
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 */
if (NT_SUCCESS(Status))
{
/* Check if this is safemode */
else
{
/* Open the app compatibility engine settings key */
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 */
if (NT_SUCCESS(Status))
{
/* Check if the app compat engine is turned off */
else
{
/* Finally, open the app compatibility policy key */
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 */
if (NT_SUCCESS(Status))
{
/* Check if the system policy disables app compat */