https://bugs.winehq.org/show_bug.cgi?id=49598
--- Comment #4 from Sagawa sagawa.aki+winebugs@gmail.com --- Created attachment 67825 --> https://bugs.winehq.org/attachment.cgi?id=67825 Proposed patch
Could you try this patch?
Reading the code, I found another issue in the code. After fixing it, this issue doesn't happen, too.