https://git.reactos.org/?p=reactos.git;a=commitdiff;h=f300ca7245b6cbb41a74c…
commit f300ca7245b6cbb41a74cf8b46362fa6bae3f04f
Author: Pierre Schweitzer <pierre(a)reactos.org>
AuthorDate: Fri May 25 08:14:44 2018 +0200
Commit: Pierre Schweitzer <pierre(a)reactos.org>
CommitDate: Fri May 25 08:48:51 2018 +0200
[NTOSKRNL] Define required sizes with structures sizes
---
ntoskrnl/ps/job.c | 37 ++++++++++++++++++++++++++++++-------
1 file changed, 30 insertions(+), 7 deletions(-)
diff --git a/ntoskrnl/ps/job.c b/ntoskrnl/ps/job.c
index 7b242c6d60..d64864db20 100644
--- a/ntoskrnl/ps/job.c
+++ b/ntoskrnl/ps/job.c
@@ -50,6 +50,36 @@ GENERIC_MAPPING PspJobMapping =
STANDARD_RIGHTS_ALL | THREAD_ALL_ACCESS // bug fixed only in vista
};
+ULONG PspJobInfoLengths[] =
+{
+ 0x0,
+ sizeof(JOBOBJECT_BASIC_ACCOUNTING_INFORMATION),
+ sizeof(JOBOBJECT_BASIC_LIMIT_INFORMATION),
+ sizeof(JOBOBJECT_BASIC_PROCESS_ID_LIST),
+ sizeof(JOBOBJECT_BASIC_UI_RESTRICTIONS),
+ sizeof(JOBOBJECT_SECURITY_LIMIT_INFORMATION),
+ sizeof(JOBOBJECT_END_OF_JOB_TIME_INFORMATION),
+ sizeof(JOBOBJECT_ASSOCIATE_COMPLETION_PORT),
+ sizeof(JOBOBJECT_BASIC_AND_IO_ACCOUNTING_INFORMATION),
+ sizeof(JOBOBJECT_EXTENDED_LIMIT_INFORMATION),
+ 0x4
+};
+
+ULONG PspJobInfoAlign[] =
+{
+ 0x0,
+ sizeof(ULONG),
+ sizeof(ULONG),
+ sizeof(ULONG),
+ sizeof(ULONG),
+ sizeof(ULONG),
+ sizeof(ULONG),
+ sizeof(ULONG),
+ sizeof(ULONG),
+ sizeof(ULONG),
+ sizeof(ULONG)
+};
+
/* FUNCTIONS *****************************************************************/
VOID
@@ -447,13 +477,6 @@ NtOpenJobObject (
}
-ULONG PspJobInfoLengths[] = { 0x0, sizeof(JOBOBJECT_BASIC_ACCOUNTING_INFORMATION),
- sizeof(JOBOBJECT_BASIC_LIMIT_INFORMATION),
- 0x0C, 0x4, 0x14, 0x4, 0x8,
-
sizeof(JOBOBJECT_BASIC_AND_IO_ACCOUNTING_INFORMATION),
- sizeof(JOBOBJECT_EXTENDED_LIMIT_INFORMATION), 0x4 };
-ULONG PspJobInfoAlign[] = { 0x0, 0x4, 0x4, 0x4, 0x4, 0x4, 0x4, 0x4, 0x4, 0x4, 0x4 };
-
/*
* @implemented
*/