From f9aeb8515e1f00f30abf0f2627721feecbc22a67 Mon Sep 17 00:00:00 2001 From: Justin Miller Date: Mon, 11 Nov 2024 03:50:40 -0800 Subject: [PATCH] GPU Driver HACKS --- ntoskrnl/io/pnpmgr/devaction.c | 6 ------ win32ss/drivers/videoprt/resource.c | 2 +- 2 files changed, 1 insertion(+), 7 deletions(-) diff --git a/ntoskrnl/io/pnpmgr/devaction.c b/ntoskrnl/io/pnpmgr/devaction.c index 94e384fac13f5..57b7c32ace257 100644 --- a/ntoskrnl/io/pnpmgr/devaction.c +++ b/ntoskrnl/io/pnpmgr/devaction.c @@ -1223,12 +1223,6 @@ PiInitializeDevNode( DPRINT1("Duplicate device instance '%wZ'\n", &InstancePathU); DPRINT1("Current instance parent: '%wZ'\n", &DeviceNode->Parent->InstancePath); DPRINT1("Old instance parent: '%wZ'\n", &OldDeviceNode->Parent->InstancePath); - - KeBugCheckEx(PNP_DETECTED_FATAL_ERROR, - 0x01, - (ULONG_PTR)DeviceNode->PhysicalDeviceObject, - (ULONG_PTR)OldDeviceObject, - 0); } DeviceNode->InstancePath = InstancePathU; diff --git a/win32ss/drivers/videoprt/resource.c b/win32ss/drivers/videoprt/resource.c index 9f50c4bd5e78b..3a09eec5ebddf 100644 --- a/win32ss/drivers/videoprt/resource.c +++ b/win32ss/drivers/videoprt/resource.c @@ -1015,7 +1015,7 @@ VideoPortVerifyAccessRanges( } if (!NT_SUCCESS(Status) || ConflictDetected) - return ERROR_INVALID_PARAMETER; + return NO_ERROR; else return NO_ERROR; }