https://bugs.winehq.org/show_bug.cgi?id=51035
--- Comment #2 from Gijs Vermeulen gijsvrm@gmail.com --- Created attachment 69897 --> https://bugs.winehq.org/attachment.cgi?id=69897 patch
Thanks for the analysis, Louis. According to my testing the current behavior was correct on WinXP, but seems to have changed starting with Vista.
This patch fixes it, will send upstream soon.