Alexandre Julliard pushed to branch master at wine / wine
Commits: 3e2b471d by Zhiyi Zhang at 2025-11-06T22:44:46+01:00 kernel32/tests: Add more GetModuleHandle() tests for WinSxS.
- - - - - 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.
- - - - -
3 changed files:
- dlls/kernel32/tests/actctx.c - dlls/ntdll/loader.c - include/winternl.h
View it on GitLab: https://gitlab.winehq.org/wine/wine/-/compare/fe37fd4f1fd8071b54e70ef90831df...