https://bugs.winehq.org/show_bug.cgi?id=52478
--- Comment #6 from Olivier F. R. Dierick o.dierick@piezo-forte.be --- Hello,
--- quote from dlls/xactengine3_7/xact_dll.c --- (...) static inline void unwrap_notificationdesc(FACTNotificationDescription *fd, (...) /* we can't use a switch statement, because the constants are static const * variables, and some compilers can't deal with that */
/* Supports SoundBank, Cue index, Cue instance */ if (fd->type == FACTNOTIFICATIONTYPE_CUEPREPARED || fd->type == FACTNOTIFICATIONTYPE_CUEPLAY || (...) --- end quote ---
If we want to be consistent with existing code, I don't think we have a choice.
Please consider using the attached patch for Staging. I think it's logically correct and will fix the issue for all compilers.
Regards.