Skip to content

Commit

Permalink
Intel HD GPU Hacks
Browse files Browse the repository at this point in the history
  • Loading branch information
DarkFire01 committed Nov 10, 2024
1 parent 9ccafe8 commit 7150471
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 4 deletions.
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
2 changes: 1 addition & 1 deletion win32ss/drivers/videoprt/resource.c
Original file line number Diff line number Diff line change
Expand Up @@ -1015,7 +1015,7 @@ VideoPortVerifyAccessRanges(
}

if (!NT_SUCCESS(Status) || ConflictDetected)
return ERROR_INVALID_PARAMETER;
return NO_ERROR;
else
return NO_ERROR;
}
Expand Down
1 change: 1 addition & 0 deletions win32ss/drivers/videoprt/videoprt.c
Original file line number Diff line number Diff line change
Expand Up @@ -1469,6 +1469,7 @@ VideoPortCreateSecondaryDisplay(
IN OUT PVOID *SecondaryDeviceExtension,
IN ULONG Flag)
{
return ERROR_DEV_NOT_EXIST;
PDEVICE_OBJECT DeviceObject;
PVIDEO_PORT_DEVICE_EXTENSION FirstDeviceExtension, DeviceExtension;
NTSTATUS Status;
Expand Down
3 changes: 0 additions & 3 deletions win32ss/user/ntuser/display.c
Original file line number Diff line number Diff line change
Expand Up @@ -489,9 +489,6 @@ UserEnumDisplaySettings(
/* let's politely ask the driver for an updated mode list,
just in case there's something new in there (vbox) */

PDEVOBJ_vRefreshModeList(ppdev);
PDEVOBJ_vRelease(ppdev);

iFoundMode = 0;
for (i = 0; i < pGraphicsDevice->cDevModes; i++)
{
Expand Down

0 comments on commit 7150471

Please sign in to comment.