https://bugs.winehq.org/show_bug.cgi?id=35405
--- Comment #11 from Henri Verbeet hverbeet@gmail.com --- (In reply to comment #7)
I have no idea if this patch is correct. I based it entirely on the comments in the code, not any deeper understanding of the issue. One of the wined3d developers should review.
It looks correct to me at first sight, but of course we'd like a test case.