mirror of
https://github.com/reactos/reactos.git
synced 2024-12-28 10:04:49 +00:00
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:
parent
37ac253ad6
commit
2423a80b6b
1 changed files with 11 additions and 0 deletions
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue