Skip to content

Commit

Permalink
HACK DE INTEL DRIVVVVV
Browse files Browse the repository at this point in the history
  • Loading branch information
DarkFire01 committed Sep 10, 2023
1 parent 993a450 commit 31a68e4
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 5 deletions.
7 changes: 6 additions & 1 deletion ntoskrnl/mm/ARM3/expool.c
Original file line number Diff line number Diff line change
Expand Up @@ -2322,6 +2322,7 @@ ExAllocatePoolWithTag(IN POOL_TYPE PoolType,
Entry = MiAllocatePoolPages(OriginalType, PAGE_SIZE);
if (!Entry)
{
DPRINT1("SIMONE - POOL - 1");
#if DBG
//
// Out of memory, display current consumption
Expand Down Expand Up @@ -2923,7 +2924,11 @@ ExFreePool(PVOID P)
//
// Just free without checking for the tag
//
ExFreePoolWithTag(P, 0);
ULONG_PTR UP = (ULONG_PTR)P;
if(UP % POOL_BLOCK_SIZE != 0)
return;
//PVOID Entry = (PVOID)(UP - (UP % POOL_BLOCK_SIZE));
ExFreePoolWithTag((PVOID)UP, 0);
}

/*
Expand Down
4 changes: 4 additions & 0 deletions ntoskrnl/mm/ARM3/syspte.c
Original file line number Diff line number Diff line change
Expand Up @@ -248,6 +248,10 @@ MiReserveSystemPtes(IN ULONG NumberOfPtes,
{
PMMPTE PointerPte;

if( NumberOfPtes > 32768 )
{
return NULL;
}
//
// Use the extended function
//
Expand Down
8 changes: 4 additions & 4 deletions win32ss/drivers/videoprt/resource.c
Original file line number Diff line number Diff line change
Expand Up @@ -994,10 +994,10 @@ VideoPortVerifyAccessRanges(

ExFreePoolWithTag(ResourceList, TAG_VIDEO_PORT);

if (!NT_SUCCESS(Status) || ConflictDetected)
return ERROR_INVALID_PARAMETER;
else
return NO_ERROR;
if (!NT_SUCCESS(Status) || ConflictDetected)
return NO_ERROR;//ERROR_INVALID_PARAMETER;
else
return NO_ERROR;
}

/*
Expand Down

0 comments on commit 31a68e4

Please sign in to comment.