mirror of
https://github.com/ApfelTeeSaft/reactos.git
synced 2026-09-02 12:23:31 +00:00
If a page fault occurs in user mode, we must deliver user mode apc's.
svn path=/trunk/; revision=16697
This commit is contained in:
@@ -62,14 +62,12 @@ NTSTATUS MmPageFault(ULONG Cs,
|
||||
Status = MmNotPresentFault(Mode, Cr2, FALSE);
|
||||
}
|
||||
|
||||
if (KeGetCurrentThread() != NULL &&
|
||||
KeGetCurrentThread()->Alerted[UserMode] != 0 &&
|
||||
Cs != KERNEL_CS)
|
||||
if (Mode == UserMode && KeGetCurrentThread()->ApcState.UserApcPending)
|
||||
{
|
||||
KIRQL oldIrql;
|
||||
|
||||
KeRaiseIrql(APC_LEVEL, &oldIrql);
|
||||
KiDeliverApc(KernelMode, NULL, NULL);
|
||||
KiDeliverApc(UserMode, NULL, NULL);
|
||||
KeLowerIrql(oldIrql);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user