https://git.reactos.org/?p=reactos.git;a=commitdiff;h=9ff015f770be41f04ca91…
commit 9ff015f770be41f04ca9184e32be02c2db9fae69
Author: Eric Kohl <eric.kohl(a)reactos.org>
AuthorDate: Sun Feb 21 15:49:06 2021 +0100
Commit: Eric Kohl <eric.kohl(a)reactos.org>
CommitDate: Sun Feb 21 15:49:06 2021 +0100
[NTOS:CM] Report key creation to the notify code
---
ntoskrnl/config/cmparse.c | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/ntoskrnl/config/cmparse.c b/ntoskrnl/config/cmparse.c
index 872a79619ae..c5376cf083d 100644
--- a/ntoskrnl/config/cmparse.c
+++ b/ntoskrnl/config/cmparse.c
@@ -379,6 +379,12 @@ CmpDoCreateChild(IN PHHIVE Hive,
/* Now that the security descriptor is copied in the hive, we can free the original */
SeDeassignSecurity(&NewDescriptor);
+ if (NT_SUCCESS(Status))
+ {
+ /* Send notification to registered callbacks */
+ CmpReportNotify(Kcb, Hive, Kcb->KeyCell, REG_NOTIFY_CHANGE_NAME);
+ }
+
Quickie:
/* Check if we got here because of failure */
if (!NT_SUCCESS(Status))
https://git.reactos.org/?p=reactos.git;a=commitdiff;h=fd8080b0942e88502ca17…
commit fd8080b0942e88502ca1735a0590f31e6d072e32
Author: Colin Finck <colin(a)reactos.org>
AuthorDate: Sat Feb 20 17:13:38 2021 +0100
Commit: Colin Finck <colin(a)reactos.org>
CommitDate: Sat Feb 20 17:13:38 2021 +0100
[KERNEL32] Align the PROCESS_PRIORITY_CLASS variable in GetPriorityClass on a 4-byte boundary.
Fixes CORE-16757.
This is required for NtQueryInformationProcess as proven by my test application in the bug report.
---
dll/win32/kernel32/client/proc.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/dll/win32/kernel32/client/proc.c b/dll/win32/kernel32/client/proc.c
index e107c19b029..3b7d6f05ec5 100644
--- a/dll/win32/kernel32/client/proc.c
+++ b/dll/win32/kernel32/client/proc.c
@@ -1658,7 +1658,7 @@ WINAPI
GetPriorityClass(IN HANDLE hProcess)
{
NTSTATUS Status;
- PROCESS_PRIORITY_CLASS PriorityClass;
+ PROCESS_PRIORITY_CLASS DECLSPEC_ALIGN(4) PriorityClass;
/* Query the kernel */
Status = NtQueryInformationProcess(hProcess,