call KiDeliverAPc at correct irql

svn path=/trunk/; revision=11756
This commit is contained in:
Gunnar Dalsnes 2004-11-21 18:37:56 +00:00
parent 24dc4f3595
commit 4635919140

View file

@ -68,7 +68,11 @@ NTSTATUS MmPageFault(ULONG Cs,
KeGetCurrentThread()->Alerted[UserMode] != 0 && KeGetCurrentThread()->Alerted[UserMode] != 0 &&
Cs != KERNEL_CS) Cs != KERNEL_CS)
{ {
KIRQL oldIrql;
KeRaiseIrql(APC_LEVEL, &oldIrql);
KiDeliverApc(KernelMode, NULL, NULL); KiDeliverApc(KernelMode, NULL, NULL);
KeLowerIrql(oldIrql);
} }
if (!NT_SUCCESS(Status) && (Mode == KernelMode) && if (!NT_SUCCESS(Status) && (Mode == KernelMode) &&
((*Eip) >= (ULONG)MmSafeCopyFromUserUnsafeStart) && ((*Eip) >= (ULONG)MmSafeCopyFromUserUnsafeStart) &&