From: short <> Date: Sat, 1 Feb 2003 00:07:54 +0000 (+0000) Subject: IofCallDriver(): Check for NULL MajorFunction handlers with KeBugCheck(0) X-Git-Tag: captive-0_2~75 X-Git-Url: https://git.jankratochvil.net/?a=commitdiff_plain;h=53316df1a5762b17af907ae296956cac546d2412;p=reactos.git IofCallDriver(): Check for NULL MajorFunction handlers with KeBugCheck(0) - support for gdb(1) to not to loose stackframe tracking if NULL is hit --- diff --git a/ntoskrnl/io/irp.c b/ntoskrnl/io/irp.c index 0b681f9..84e8e4d 100644 --- a/ntoskrnl/io/irp.c +++ b/ntoskrnl/io/irp.c @@ -131,6 +131,8 @@ IofCallDriver(PDEVICE_OBJECT DeviceObject, DPRINT("MajorFunction %d\n", Param->MajorFunction); DPRINT("DriverObject->MajorFunction[Param->MajorFunction] %x\n", DriverObject->MajorFunction[Param->MajorFunction]); + if (!DriverObject->MajorFunction[Param->MajorFunction]) + KeBugCheck(0); Status = DriverObject->MajorFunction[Param->MajorFunction](DeviceObject, Irp);