https://bugs.winehq.org/show_bug.cgi?id=36859
--- Comment #23 from Dmitry Timoshkov dmitry@baikal.ru --- (In reply to Jeremy White from comment #22)
The updated patch addresses that as well. The second part of this patch is not as clearly correct to me; the rubric of strlen <= 12 troubles me. I'll either get advice and then submit after 1.8, or just submit after 1.8, and take my lumps...
strlen() <= 12 looks suspicious, for instance "abc.acbdef" would fit into 12 but it's not a 8.3 DOS name. How about using CheckNameLegalDOS8Dot3() or its workhorse RtlIsNameLegalDOS8Dot3() instead?
The second part about casing might be a FindFirstFile() bug, probably it should return the file in using original case (for at least short name).