https://bugs.winehq.org/show_bug.cgi?id=27282
--- Comment #15 from Sebastian Lackner sebastian@fds-team.de --- I have written a patchset including tests which seems to confirm my theory:
Patches: https://github.com/wine-compholio/wine-staging/tree/master/patches/user32-Fi...
Testbot: https://newtestbot.winehq.org/JobDetails.pl?Key=10210
Could you guys please give it a try?
Please note that patch 2 also contains some tests for GetWindowText, and these tests seem to confirm that everything is right with the Wine implementation. Applying the patch from comment 12 or http://source.winehq.org/patches/data/100929 breaks the tests.