Author: tkreuzer
Date: Wed Dec 3 08:10:19 2008
New Revision: 37818
URL:
http://svn.reactos.org/svn/reactos?rev=37818&view=rev
Log:
fix ULONG/ULONG_PTR issue
Modified:
branches/ros-amd64-bringup/reactos/ntoskrnl/ps/query.c
Modified: branches/ros-amd64-bringup/reactos/ntoskrnl/ps/query.c
URL:
http://svn.reactos.org/svn/reactos/branches/ros-amd64-bringup/reactos/ntosk…
==============================================================================
--- branches/ros-amd64-bringup/reactos/ntoskrnl/ps/query.c [iso-8859-1] (original)
+++ branches/ros-amd64-bringup/reactos/ntoskrnl/ps/query.c [iso-8859-1] Wed Dec 3
08:10:19 2008
@@ -135,7 +135,7 @@
ProcessBasicInfo->UniqueProcessId = (ULONG_PTR)Process->
UniqueProcessId;
ProcessBasicInfo->InheritedFromUniqueProcessId =
- (ULONG)Process->InheritedFromUniqueProcessId;
+ (ULONG_PTR)Process->InheritedFromUniqueProcessId;
ProcessBasicInfo->BasePriority = Process->Pcb.BasePriority;
}
@@ -255,7 +255,7 @@
_SEH_TRY
{
/* Write back the Session ID */
- SessionInfo->SessionId = Process->Session;
+ SessionInfo->SessionId = PtrToUlong(Process->Session);
/* Set the return length */
Length = sizeof(PROCESS_SESSION_INFORMATION);
@@ -682,7 +682,7 @@
if (!NT_SUCCESS(Status)) break;
/* Write the session ID in the EPROCESS */
- Process->Session = SessionInfo.SessionId;
+ Process->Session = UlongToPtr(SessionInfo.SessionId);
/* Check if the process also has a PEB */
if (Process->Peb)