Prevent from accessing DpcEvent in the KPCR structure, because it is
currently a NULL pointer.
Modified: trunk/reactos/ntoskrnl/ke/dpc.c
_____
Modified: trunk/reactos/ntoskrnl/ke/dpc.c
--- trunk/reactos/ntoskrnl/ke/dpc.c 2005-03-15 15:58:36 UTC (rev
14098)
+++ trunk/reactos/ntoskrnl/ke/dpc.c 2005-03-15 17:35:27 UTC (rev
14099)
@@ -35,7 +35,13 @@
KeInitDpc(PKPRCB Prcb)
{
InitializeListHead(&Prcb->DpcData[0].DpcListHead);
+#if 0
+ /*
+ * FIXME:
+ * Prcb->DpcEvent is a NULL pointer.
+ */
KeInitializeEvent(Prcb->DpcEvent, 0, 0);
+#endif
KeInitializeSpinLock(&Prcb->DpcData[0].DpcLock);
Prcb->MaximumDpcQueueDepth = 4;
Prcb->MinimumDpcRate = 3;
@@ -428,6 +434,11 @@
/* Set DPC Event if requested */
if (Prcb->DpcSetEventRequest) {
+ /*
+ * FIXME:
+ * Prcb->DpcEvent is not initialized.
+ */
+ KEBUGCHECK(0);
KeSetEvent(Prcb->DpcEvent, 0, 0);
}