https://bugs.winehq.org/show_bug.cgi?id=39811
--- Comment #2 from Matteo Bruni matteo.mystral@gmail.com --- (In reply to Piotr Caban from comment #1)
Probably a correct solution is to revert Ken's patch and remove "else if (!case_sensitive && ret && (errno == ENOENT || errno == ENOTDIR))" block from Matteo's patch but I'll leave it to patch authors.
That seems like a sensible solution. I would also add some tests to both NtQueryDirectoryFiles and GetLongPathName.
Actually if I'm not mistaken there is already a test for GetLongPathName which would regress with these patches...