https://bugs.winehq.org/show_bug.cgi?id=46012
--- Comment #15 from Aida Jonikienė aidas957@gmail.com --- I forgot to check the merge request list because someone else already made a MR for that function (with tests too): https://gitlab.winehq.org/wine/wine/-/merge_requests/979
So you should test that instead of my hacky patch