On Windows GetModuleHandle("comctl32.dll") definitely reflects context. So doing:
GetModuleHandle("comctl32.dll") <- returns v5 module activate context + loadlibrary("comctl32.dll") + GetModuleHandle("comctl32.dll") <- returns v6 module deactivate + GetModuleHandle("comctl32.dll") <- returns v5 module
On current Wine, with or without this MR, last step returns v6 module for me.
Is it possible we should be fixing that instead of using full paths?
If the intent is to load v5 from user32 regardless of the context, we should just do that dance with fast-frame context push/pop.