So I presume, I need to modify my patch a little, to only print the error when `if (current_modref)` holds *(i.e. to remove the `else` branch)*. The `current_modref` being set implies we're trying to load the lib because it's required by something else.
That won't help, it's legitimate to try to load a dll to see if it can be loaded, just like opening a non-existent file. It's also expected for it to fail if some dependency is missing, that's not necessarily a problem. Printing an error at that point is going to cause a lot of false positives.