ntdll: Avoid using current_modref.
This is a cleanup in preparation for !7 (merged). Originally, !7 (merged) extended the use of current_modref
, but I think we could avoid that with a more direct approach. Most of these changes are no-ops.
For the relay handler, we no longer treat GetProcAddress
calls inside DllMain
as coming from a loaded DLL. I believe this was more of a side effect of how the code was structured rather than an intentional behavior that needs to be preserved.
One more use of current_modref
remains, which will be removed by !7 (merged).