Module: wine Branch: master Commit: e95d0813fdfcfcac2bb1761e62e1d54e6f73cd6d URL: https://source.winehq.org/git/wine.git/?a=commit;h=e95d0813fdfcfcac2bb1761e6...
Author: Gabriel Ivăncescu gabrielopcode@gmail.com Date: Wed Mar 18 18:31:52 2020 +0200
ntdll: Store the default process activation context into the PEB.
Signed-off-by: Gabriel Ivăncescu gabrielopcode@gmail.com Signed-off-by: Alexandre Julliard julliard@winehq.org
---
dlls/ntdll/actctx.c | 2 ++ 1 file changed, 2 insertions(+)
diff --git a/dlls/ntdll/actctx.c b/dlls/ntdll/actctx.c index b88e6dea07..17f9cad084 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; }