Skip to content

Commit 3cf8774

Browse files
committed
fixup win7 pooltable.
1 parent 80df328 commit 3cf8774

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

.gitignore

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
# Compiled binaries.
33
#
44
Build/**
5-
Debug/**
65

76
#
87
# Visual Studio files.

Projects/Shark/AMD64/PatchGuardAMD64.c

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -806,6 +806,8 @@ InitializePgBlock(
806806

807807
if (NULL != ControlPc) {
808808
PgBlock->Pool.PoolBigPageTable =
809+
GetGpBlock(PgBlock)->BuildNumber < 9200 ?
810+
__rva_to_va_ex(ControlPc + 3, 1) :
809811
__rva_to_va(ControlPc
810812
+ (GetGpBlock(PgBlock)->BuildNumber >= 9200 ? 8 : 3));
811813

@@ -1683,9 +1685,8 @@ PgClearPoolEncryptedContext(
16831685
Index++) {
16841686
if (POOL_BIG_TABLE_ENTRY_FREE !=
16851687
((u64)POOL_TABLE[Index].Va & POOL_BIG_TABLE_ENTRY_FREE)) {
1686-
if (FALSE !=
1687-
PgBlock->Pool.MmIsNonPagedSystemAddressValid(POOL_TABLE[Index].Va)) {
1688-
if (POOL_TABLE[Index].NumberOfPages > PgBlock->SizeINITKDBG) {
1688+
if (POOL_TABLE[Index].NumberOfPages >= PgBlock->SizeINITKDBG) {
1689+
if (0 != PgBlock->Pool.MmIsNonPagedSystemAddressValid(POOL_TABLE[Index].Va)) {
16891690
PgCompareFields(
16901691
PgBlock,
16911692
PgPoolBigPage,

0 commit comments

Comments
 (0)