Remove legacy access mask
@@ -114,17 +114,15 @@ PPH_SYMBOL_PROVIDER PhCreateSymbolProvider(
{
static ACCESS_MASK accesses[] =
{
- STANDARD_RIGHTS_REQUIRED | SYNCHRONIZE | 0xfff, // pre-Vista full access
+ //STANDARD_RIGHTS_REQUIRED | SYNCHRONIZE | 0xfff, // pre-Vista full access
PROCESS_QUERY_INFORMATION | PROCESS_VM_READ | PROCESS_DUP_HANDLE,
PROCESS_QUERY_INFORMATION | PROCESS_VM_READ,
MAXIMUM_ALLOWED
};
- ULONG i;
-
// Try to open the process with many different accesses.
// This handle will be re-used when walking stacks, and doing various other things.
- for (i = 0; i < sizeof(accesses) / sizeof(ACCESS_MASK); i++)
+ for (ULONG i = 0; i < sizeof(accesses) / sizeof(ACCESS_MASK); i++)
{
if (NT_SUCCESS(PhOpenProcess(&symbolProvider->ProcessHandle, accesses[i], ProcessId)))
{
