NtQueueApcThread always inserts a umode apc

svn path=/trunk/; revision=13580
This commit is contained in:
Thomas Bluemel 2005-02-15 11:46:31 +00:00
parent f4c9f96205
commit b24437e1ae

View file

@ -548,14 +548,14 @@ NtQueueApcThread(HANDLE ThreadHandle,
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;