https://bugs.winehq.org/show_bug.cgi?id=44329
--- Comment #9 from Nikolay Sivov bunglehead@gmail.com --- (In reply to Sergey Lisitski from comment #8)
(In reply to Nikolay Sivov from comment #7)
The problem is not that wrong state is returned, but actually state field is not touched at all when requesting subitem data. I'll send a fix for that after code freeze.
P.S. running your test exe is problematic, it needs mfc140, but after installing vcrun2015, it still crashes because of some ucrtbase vs api-ms-* forwards. If possible please rebuild it with older Visual Studio.
Wicth version of Visual Studio will be best for you?
Static build would be the best I think. Otherwise any version will do, if there's a reasonably simple way to install dependencies. How are you running this test with Wine?