https://bugs.winehq.org/show_bug.cgi?id=46863
--- Comment #5 from Zebediah Figura z.figura12@gmail.com --- (In reply to Fabian Maurer from comment #4)
@Zebediah Figura Do you know why it's checking for the string windows in the first place?
The point of that function is twofold, both to determine the correct case of each path element and to resolve redirects. Since determining the correct case can be expensive, it tries to use the passed-in case first. However, if the path involves redirects, that check will be wrong, so it's skipped. As it happens all redirected files and directories live inside the C:/windows/ directory, so it works as a quick filter.