mirror of
https://github.com/reactos/reactos.git
synced 2025-06-06 09:50:43 +00:00
[NDK/NTOSKRNK]
- Finally make EPROCESS::Session PVOID, as it's supposed to be - add missing Wow64Process member svn path=/trunk/; revision=56263
This commit is contained in:
parent
5491e8fbde
commit
549c33f2ff
2 changed files with 16 additions and 12 deletions
|
@ -1112,13 +1112,17 @@ typedef struct _EPROCESS
|
|||
HARDWARE_PTE PageDirectoryPte;
|
||||
ULONGLONG Filler;
|
||||
};
|
||||
ULONG Session; // FIXME: PVOID
|
||||
PVOID Session;
|
||||
CHAR ImageFileName[16];
|
||||
LIST_ENTRY JobLinks;
|
||||
PVOID LockedPagesList;
|
||||
LIST_ENTRY ThreadListHead;
|
||||
PVOID SecurityPort;
|
||||
#ifdef _M_AMD64
|
||||
struct _WOW64_PROCESS *Wow64Process;
|
||||
#else
|
||||
PVOID PaeTop;
|
||||
#endif
|
||||
ULONG ActiveThreads;
|
||||
#if (NTDDI_VERSION >= NTDDI_LONGHORN)
|
||||
ULONG ImagePathHash;
|
||||
|
|
|
@ -958,7 +958,7 @@ NtQueryInformationProcess(IN HANDLE ProcessHandle,
|
|||
{
|
||||
/* Get the WOW64 process structure */
|
||||
#ifdef _WIN64
|
||||
Wow64 = Process->Wow64Process;
|
||||
Wow64 = (ULONG_PTR)Process->Wow64Process;
|
||||
#else
|
||||
Wow64 = 0;
|
||||
#endif
|
||||
|
@ -1322,7 +1322,7 @@ NtSetInformationProcess(IN HANDLE ProcessHandle,
|
|||
if (!NT_SUCCESS(Status)) break;
|
||||
|
||||
/* Write the session ID in the EPROCESS */
|
||||
Process->Session = SessionInfo.SessionId;
|
||||
Process->Session = UlongToPtr(SessionInfo.SessionId); // HACK!!!
|
||||
|
||||
/* Check if the process also has a PEB */
|
||||
if (Process->Peb)
|
||||
|
|
Loading…
Reference in a new issue