4122bf9c
by Zhiyi Zhang at 2025-11-06T22:44:46+01:00
ntdll: Exclude SxS DLLs when finding a DLL with its base name and no activation contexts.
SxS DLLs are found via find_actctx_dll(). When activation contexts are inactive, GetModuleHandle()
shouldn't find SxS DLLs with the same base name of a normal DLL. Whether a DLL is a SxS DLL is
marked by the LDR_REDIRECTED(0x10000000) flag in LDR_DATA_TABLE_ENTRY.Flags. Manual testing also
shows that LDR_REDIRECTED is not present for DLLs redirected via the API set mechanism.