https://bugs.winehq.org/show_bug.cgi?id=36946
--- Comment #9 from Andreas Fuchs anduchs@gmail.com --- (In reply to Sebastian Lackner from comment #8)
Just for the log - this is what a proper solution would look like: http://ix.io/eBW
Nevertheless, I don't think we should apply that, since my tests show that this doesn't match the behaviour on recent versions of Windows - and I doubt that anyone really wants to enforce always the Windows 2000 behaviour.
Unfortunately, that's IMHO not the correct solution... :-(
The reason is that if the attribute CASE_INSESITIVE on OpenFile() is not set, then the system's default is used. So in case that the system's default is insensitive the operation would not be case sensitive, even if the flag CASE_SENSITIVE is set.
I think the correct solution would be to call QueryInformationFile() on the opened file for FileNameInformation and do an actual strcmp, if the flag CASE_SENSITIVE is set.