This would need more tests, but it's pretty unlikely that it would search only the exe directory. Probably it should be using something like SearchPathW.
Thanks, sounds sensible.
Apart from current working directory and PE directory, which paths should I best write tests for?
Regards, Fabian Maurer