[NTDLL] Use the embedded manifest from the process to check compatibility.

This commit is contained in:
Mark Jansen 2018-12-23 18:36:59 +01:00
parent cbf47846e7
commit 029b8f2cf9
No known key found for this signature in database
GPG key ID: B39240EE84BEAE8B
3 changed files with 16 additions and 8 deletions

View file

@ -5000,7 +5000,7 @@ static NTSTATUS find_guid(ACTIVATION_CONTEXT* actctx, ULONG section_kind,
}
/* initialize the activation context for the current process */
void actctx_init(void)
void actctx_init(PVOID* pOldShimData)
{
ACTCTXW ctx;
HANDLE handle;
@ -5018,6 +5018,11 @@ void actctx_init(void)
process_actctx = check_actctx(handle);
}
/* ReactOS specific:
Now that we have found the process_actctx we can initialize the process compat subsystem */
LdrpInitializeProcessCompat(process_actctx, pOldShimData);
ctx.dwFlags = 0;
ctx.hModule = NULL;
ctx.lpResourceName = NULL;

View file

@ -243,4 +243,10 @@ WCHAR
NTAPI
RtlpDowncaseUnicodeChar(IN WCHAR Source);
/* ReactOS only */
VOID
NTAPI
LdrpInitializeProcessCompat(PVOID pProcessActctx, PVOID* pOldShimData);
/* EOF */