[Bug 36946] FindFirstFileExW() needs FIND_FIRST_EX_CASE_SENSITIVE support

wine-bugs at winehq.org wine-bugs at winehq.org
Sat Oct 4 14:18:03 CDT 2014


https://bugs.winehq.org/show_bug.cgi?id=36946

--- Comment #9 from Andreas Fuchs <anduchs at 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.

-- 
Do not reply to this email, post in Bugzilla using the
above URL to reply.
You are receiving this mail because:
You are watching all bug changes.



More information about the wine-bugs mailing list