https://bugs.winehq.org/show_bug.cgi?id=39185
--- Comment #3 from Alistair Leslie-Hughes leslie_alistair@hotmail.com --- This does indeed affect an real application. I'll can run a bunch of tests in a few days.
The patch looks good. It's like one I was testing but yours doesn't cause tests to fail.