This fix solves the segfault issue (wine 10.4 + this MR):
❯ winegcc --version gcc (GCC) 14.2.1 20250110 (Red Hat 14.2.1-7) Copyright (C) 2024 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
Tested on Fedora 41 x86_64 shared-WoW64 build from: https://copr.fedorainfracloud.org/coprs/patrickl/test/build/8806880/