fixed bug caused by my APC code

svn path=/trunk/; revision=860
This commit is contained in:
Phillip Susi 1999-12-12 00:44:39 +00:00
parent 55fef42029
commit 5d2dc4de65

View file

@ -99,7 +99,7 @@ static VOID HiSwitchIrql(KIRQL oldIrql)
__asm__("sti\n\t");
return;
}
if( CurrentIrql == PASSIVE_LEVEL && CurrentThread->ApcState.KernelApcPending )
if( CurrentIrql == PASSIVE_LEVEL && CurrentThread && CurrentThread->ApcState.KernelApcPending )
{
KeSetCurrentIrql( APC_LEVEL );
KeApcProlog2();