https://bugs.winehq.org/show_bug.cgi?id=52478
--- Comment #3 from Alistair Leslie-Hughes leslie_alistair@hotmail.com --- (In reply to Olivier F. R. Dierick from comment #2)
Created attachment 71776 [details] Replace switch with if-else
Hello,
This patch fixes the compilation for me.
Regards.
I've just added a patch to cast the values, which should work as well.