https://bugs.winehq.org/show_bug.cgi?id=54034
--- Comment #4 from Rafał Mużyło galtgendo@o2.pl --- Created attachment 73617 --> https://bugs.winehq.org/attachment.cgi?id=73617 second version of first patch
Now, this one is untested (and I'm unsure how to properly test this), but if my understanding of set_states helper is correct, this should be correct too.
If I'm wrong, that most likely means more calls in set_states need to be put under the second flag.