diff --git a/reactos/ntoskrnl/hal/x86/irql.c b/reactos/ntoskrnl/hal/x86/irql.c index 08c03f65866..bce36232a18 100644 --- a/reactos/ntoskrnl/hal/x86/irql.c +++ b/reactos/ntoskrnl/hal/x86/irql.c @@ -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();