From 5d2dc4de656497e1c273e18026c9603e6d1e1ea6 Mon Sep 17 00:00:00 2001 From: Phillip Susi Date: Sun, 12 Dec 1999 00:44:39 +0000 Subject: [PATCH] fixed bug caused by my APC code svn path=/trunk/; revision=860 --- reactos/ntoskrnl/hal/x86/irql.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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();