[PATCH v3 2/5] ntdll: Store the default process activation context into the PEB.
Gabriel Ivăncescu
gabrielopcode at gmail.com
Wed Mar 18 11:31:52 CDT 2020
Signed-off-by: Gabriel Ivăncescu <gabrielopcode at gmail.com>
---
We can't get rid of process_actctx; the loader uses
RtlFindActivationContextSectionString when it's not initialized, and will
segfault if we do that.
dlls/ntdll/actctx.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/dlls/ntdll/actctx.c b/dlls/ntdll/actctx.c
index b88e6de..17f9cad 100644
--- a/dlls/ntdll/actctx.c
+++ b/dlls/ntdll/actctx.c
@@ -4942,6 +4942,8 @@ void actctx_init(void)
ctx.lpResourceName = (LPCWSTR)CREATEPROCESS_MANIFEST_RESOURCE_ID;
if (!RtlCreateActivationContext( &handle, &ctx )) process_actctx = check_actctx(handle);
+
+ NtCurrentTeb()->Peb->ActivationContextData = process_actctx;
}
--
2.21.0
More information about the wine-devel
mailing list