Fabian Maurer dark.shadow4@web.de writes:
Sorry, I overlooked that the function is also used for getting already loaded dlls. I'll extend the tests and send an updated fix soon.
I take that back, the issue lies deeper.
Currently all built-in dlls are given a path inside "C:\windows\system32" when they are loaded. When they are an sxs dll, they need to be given the proper path inside winsxs. This can easily be verified by loading msvcp90 and getting the module location by GetModulePathA.
This should already work correctly for PE builtins.
It could be fixed for the .so builtins too, but you'll still need to check that the expected .so file was loaded before applying the specified path.