Hello Lucas, thank you for the patch! I have one comment that's not related to the code itself: In my opinion it would be better to open a bug report at https://bugs.winehq.org/ and link to that in the commit message instead of linking to a forum thread. That way, when the bug is fixed, a note will appear in the change log of the first Wine development version where it is fixed, and the fix will also be considered for inclusion in the next Wine stable version.