https://bugs.winehq.org/show_bug.cgi?id=45218
--- Comment #7 from Matteo Bruni matteo.mystral@gmail.com --- Also, as the patch author mentioned:
Switching to loading dlls from top down stops this from happening but I doubt that's a good approach.
which is what the second patch does. So that issue probably needs some alternative fix.
The first patch seems correct to me though and could be submitted for inclusion IMHO (assuming it doesn't break the tests).