18 Mar
2020
18 Mar
'20
4:31 p.m.
Signed-off-by: Gabriel Ivăncescu <gabrielopcode(a)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