Prevent from accessing DpcEvent in the KPCR structure, because it is currently a NULL pointer.

svn path=/trunk/; revision=14099
This commit is contained in:
Hartmut Birr 2005-03-15 17:35:27 +00:00
parent 37ac253ad6
commit 2423a80b6b

View file

@ -35,7 +35,13 @@ INIT_FUNCTION
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 @@ KiQuantumEnd(VOID)
/* Set DPC Event if requested */
if (Prcb->DpcSetEventRequest) {
/*
* FIXME:
* Prcb->DpcEvent is not initialized.
*/
KEBUGCHECK(0);
KeSetEvent(Prcb->DpcEvent, 0, 0);
}