[NTOSKRNL] Fix 64 bit warnings about conversion in PsExitSpecialApc and PspTerminateT...
authorTimo Kreuzer <timo.kreuzer@reactos.org>
Fri, 18 Aug 2017 12:31:19 +0000 (12:31 +0000)
committerTimo Kreuzer <timo.kreuzer@reactos.org>
Fri, 18 Aug 2017 12:31:19 +0000 (12:31 +0000)
svn path=/trunk/; revision=75610

reactos/ntoskrnl/ps/kill.c

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