[NTOSKRNL] Fix 64 bit warnings about conversion in PsExitSpecialApc and PspTerminateThreadByPointer

svn path=/trunk/; revision=75610
This commit is contained in:
Timo Kreuzer 2017-08-18 12:31:19 +00:00
parent 8dea5dc526
commit 6c364c895d

View file

@ -933,7 +933,7 @@ PsExitSpecialApc(IN PKAPC Apc,
if (Apc->SystemArgument2) if (Apc->SystemArgument2)
{ {
/* Free the APC */ /* Free the APC */
Status = (NTSTATUS)Apc->NormalContext; Status = PtrToUlong(Apc->NormalContext);
PspExitApcRundown(Apc); PspExitApcRundown(Apc);
/* Terminate the Thread */ /* Terminate the Thread */
@ -1039,7 +1039,7 @@ PspTerminateThreadByPointer(IN PETHREAD Thread,
PspExitApcRundown, PspExitApcRundown,
PspExitNormalApc, PspExitNormalApc,
KernelMode, KernelMode,
(PVOID)ExitStatus); UlongToPtr(ExitStatus));
/* Insert it into the APC Queue */ /* Insert it into the APC Queue */
if (!KeInsertQueueApc(Apc, Apc, NULL, 2)) if (!KeInsertQueueApc(Apc, Apc, NULL, 2))