NtQueueApcThread always inserts a umode apc
Modified: trunk/reactos/ntoskrnl/ke/apc.c
_____
Modified: trunk/reactos/ntoskrnl/ke/apc.c
--- trunk/reactos/ntoskrnl/ke/apc.c 2005-02-14 22:50:15 UTC (rev
13579)
+++ trunk/reactos/ntoskrnl/ke/apc.c 2005-02-15 11:46:31 UTC (rev
13580)
@@ -548,14 +548,14 @@
return(STATUS_NO_MEMORY);
}
- /* Initialize and Queue */
+ /* Initialize and Queue a user mode apc (always!) */
KeInitializeApc(Apc,
&Thread->Tcb,
OriginalApcEnvironment,
KiFreeApcRoutine,
NULL,
ApcRoutine,
- PreviousMode,
+ UserMode,
NormalContext);
if (!KeInsertQueueApc(Apc, SystemArgument1, SystemArgument2,
IO_NO_INCREMENT)) {
Status = STATUS_UNSUCCESSFUL;
Show replies by date